A mysterious JavaScript keyword

A mysterious JavaScript keyword

One day, I came across to know a strange keyword of JavaScript, which I believe that very few people would know about. This keyword is items.

That day my colleague told me that he is not able to run a fragment of code of JavaScript, even it is being well written. We both had a sort of brainstorming on the code and the outcome was surprising for us.
There were a variable called items and the code was terminating itself there. When we changed the variable from items to nItems, the code was running perfectly. While it stopped running when changed the variable name back to items. Then we concluded that it might be a hidden keyword of JavaScript.
Note:
We checked the wikipedia for keywords of JavaScript and it says that “All Java keywords are reserved in JavaScript”, but items is not there. We also found this web-page, which has list of keywords, but the “items” thing is also not there.

One thought on “A mysterious JavaScript keyword

  1. Pingback: cams

Leave a Reply

Your email address will not be published. Required fields are marked *