运算符作业
-
let a = 1; let s = "我的" * a;
s的值是underfined
-
10 * 10 % 2 + 18 / 3 ** 2
结果值为 :2
-
let s = 10; s += s;
s的值为 :20
-
let a = 10; let s = a++; console.log(a);
a的值为:11
-
对象在做相等判断时 是比较内存地址嘛
- true
- false
-
下列哪些会转换类型进行比较
-
>
-
==
-
===
-
>=
-
!==
-
!
-
-
true || false && false
值为:true
-
10 == "10" && "11" > 10 || false
值为:true
-
计算题
let obj = { name:"夏栀", age:18, sex:"女", } let arr = [11] let bol = obj.age == arr[0] || 66 // bol的值什么 66
-
let a = "" || "123" === 123 || function(){} && [ ] || 0
a的值是多少 []