What is the char reserved keyword used for in JavaScript (as type declaration is not necessary), and especially, what is the correct syntax to use it (could someone give me a proper full example)?
Because writing char c; throws an interpretation error saying missing ; before statement, just before the c?
There are a lot of reserved keyword in JavaScript that are reserved for “future” use. They don’t necessarily have a current use and a description.
MDN does list some of them that have this special “future use” status here : https://developer.mozilla.org/en/JavaScript/Reference/Reserved_Words (thanks to DCoder) and you can also read from that article :
To expand a little further as to why it’s consider a reserved keyword in some places and in some places it’s not. The ECMAScript v3 specification did include
charas a reserved keyword, but the ECMAScript v5 specification (which is starting to be the most common one) does not include it.