What is the 'char' keyword used for?
char, javascript, keyword
Solution
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 :
The following are reserved as future keywords by the ECMAScript specification. They have no special functionality at present, but they might at some future time, so they cannot be used as identifiers. These keywords may not be used in either strict or non-strict mode.
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 `char` as a reserved keyword, but the ECMAScript v5 specification (which is starting to be the most common one) does not include it.
Problem
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`?