Reputation: 91
let type = "HI";
console.log(type)
I know its not a reserved word but its showing in blue color while taking as a variable so got a doubt?
Upvotes: 0
Views: 671
Reputation: 4754
Per this documentation, type
is not reserved word for now or near future.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar
Note that typeof
is reserved word. So, it is a matter of readability and naming conventions that you/your team may follow.
Upvotes: 1