11-4.js

来自「js 全的样例代码,比较适合大家学习和交流」· JavaScript 代码 · 共 8 行

JS
8
字号
// Determining whether strings are compared by value or reference is easy.// We compare two clearly distinct strings that happen to contain the same// characters. If they are compared by value they will be equal, but if they// are compared by reference, they will not be equal:var s1 = "hello";var s2 = "hell" + "o";if (s1 == s2) document.write("Strings compared by value");

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?