JavaScript
js>var s = "test"; js>s.len = 4; js>typeof(s.len) undefined なぜこのようなことになるのでしょう? js>var s = "test"; この段階では、sは文字リテラル"test"自体を指している。 js>s.length; s.lengthは(new String(s)).lengthと解釈され、新たなオブジ…
js>var s = "test"; js>s.len = 4; js>typeof(s.len) undefined なぜこのようなことになるのでしょう? js>var s = "test"; この段階では、sは文字リテラル"test"自体を指している。 js>s.length; s.lengthは(new String(s)).lengthと解釈され、新たなオブジ…