Home >Web Front-end >JS Tutorial >Getting started with Javascript, the first article on js basics Page 1/2_Basic knowledge
Javascript learning first article js basics
1, javascript character set:
javascript uses the Unicode character set encoding.
Why use this encoding?
The reason is simple, 16-bit Unicode encoding can represent any written language of people on earth. This is an important feature of language internationalization. (You may have seen scripts written in Chinese, such as: function My function () {} );
Each character in Javascript is represented by 2 bytes. (Because it is 16-bit encoding)
2, case sensitive:
js is a case-sensitive language.
Note: I have made mistakes before.
HTML is not case sensitive. I often see people write like this,