6-6编程练习
来源:6-6 逻辑或逻辑非
慕尼黑6476426
2017-12-07 09:16:56
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>逻辑操作符</title>
</head>
<body>
<script>
var x=NaN,y=undefined,z=1;
var m=1,n=" 0",j=33;
var a=!(!underfined),b=!0;
console.log( x || y || z )//1
console.log( m || n || j )//1
console.log( a || b )//flase
</script>
</body>
</html>
请问上面哪里错了
2回答
怎么都被占用了呢
2017-12-07
单词写错了哦,应该是undefined
精慕门9526425
2017-12-07
console.log(a||b)是true吧,b是true
相似问题