开发者

Difference in capitalization (javascript)

开发者 https://www.devze.com 2023-02-24 08:33 出处:网络
I noticed in my code that I used .Length and .length (for an array).I now in some languages, this doesn\'t work.What happened here?Are these things just not case sensitiv开发者_JAVA技巧e?JavaScript is

I noticed in my code that I used .Length and .length (for an array). I now in some languages, this doesn't work. What happened here? Are these things just not case sensitiv开发者_JAVA技巧e?


JavaScript is case sensitive. One thing that's possible is that someone added a property called Length to Array's prototype in your codebase.

0

精彩评论

暂无评论...
验证码 换一张
取 消