Result Size: 625 x 534
x
 
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript 数字</h2>
<p>切勿将数字创建为对象。</p>
<p>无法安全地比较数字和对象。</p>
<p id="demo"></p>
<script>
var x = 500;        // x is a number
var y = new Number(500);  // y is an object
document.getElementById("demo").innerHTML = (x==y);
</script>
</body>
</html>