【JS】递增和递减运算符

Osinghong7个月前 (03-10)成果展示168
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>d24c04429 欧永鸿</title>
	</head>
	<body>
		<script>
			var a = 10;
			++a;
			var b = ++a +2;
			console.log(b);	
			
			var c = 10;
			c++;
			var d = c++ + 2;
			console.log(d);
			
			var e = 10;
			var f = e++ + ++e;
			console.log(f);
		</script>
	</body>
</html>


打赏
分享给朋友:

相关文章

【JS】水果查询7个月前 (03-17)
【JS】For语句7个月前 (03-17)
【JS】For语句练习7个月前 (03-17)
【JS】关于continue7个月前 (03-24)
【JS】倒三角形7个月前 (03-24)