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

http://img.mukewang.com/climg/5a28d7ff00010b5604350186.jpg

单词写错了哦,应该是undefined

0

精慕门9526425

2017-12-07

console.log(a||b)是true吧,b是true

0

0 学习 · 36712 问题

查看课程

相似问题