DRAFT
Observed
A single character is of type char
A signle character is of type string
In JavaScript, there is no type char
and there is no major difference between using single-quoted and double-quoted literals.
All these elements are of type string
, one of the six primitive data types.
Many programming languages (such as C/C++ and Java) have a special type to denote single characters.
Follow us on twitter to hear about new misconceptions.