为什么以下行在falseJavascript中返回:
[[1,2,3], [1,2,4]].includes([1,2,3]);
Run Code Online (Sandbox Code Playgroud)
这背后的基本逻辑是什么?
我来自c#background,其中使用public get,private set属性实现了immutable.我已经读过javascript中的数字是不可变的,所以我该怎么做才能做到
var x = 6 / 2;
console.log(x); // 3
x = 8;
console.log(x); // 8
Run Code Online (Sandbox Code Playgroud)
我换了x,我以为我做不到?