Learning js should be fun. It's fun if it's easy.
I tried my best in writing this, to understand it easily.
datatype
String
There is no char datatype in js like other languages. A single char is also stored in String datatype.
${str1} works as getting a value out of a variable, because of `(backtick) also called as template literal.
Leave y'r thoughts....
The above is the detailed content of Js in bits - (datatypes - String). For more information, please follow other related articles on the PHP Chinese website!