x
 
<!DOCTYPE html>
<html>
<body>
<p>将 5 赋给 x,并显示比较值 (x! = 8)。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
  var x = 5;
  document.getElementById("demo").innerHTML = (x != 8);
}
</script>
</body>
</html>