JavaScript is an object-oriented, dynamic language that contains types, operators, standard built-in (built-in) objects, and methods. Its syntax comes from Java and C, so many of the syntax features of the two languages apply to JavaScript as well. One of the main differences to note is that JavaScript does not support classes, and the concept of classes is continued in JavaScript through object prototype (the contents of the ES6 class are referenced here classes). Another major difference is that functions in JavaScript are also objects, and JavaScript allows functions to be passed like other objects while containing executable code.
Start with "type", which is an integral part of any programming language. JavaScript programs can modify values (value), and these values have their own type. The types in JavaScript include:
Number (numeric)
String (String)
Boolean (Boolean)
function (Functions)
Object (Objects)
Symbol (Sixth edition added)
... Oh, and there seems to be some ... Strange Undefined (undefined) type and null (empty) type. There are also array (array) types, as well as date (date) and REGEXP (regular expressions), which are used to represent dates and regular expressions, which are special objects for each of the three types. In strict sense, function is also a special kind of object. So exactly, the types in JavaScript should include these:
Number (numeric)
String (String)
Boolean (Boolean)
Symbol (Sixth edition added)
Object (Objects)
function (Functions)
Array (arrays)
Date (day)
REGEXP (Regular expression)
Null (empty)
Undefined (not defined)
Related address: https://ke.qq.com/course/256212?flowToken=1001258
What JS (JavaScript)!!!!