Please enable JavaScript.
Coggle requires JavaScript to display documents.
JS -Values, Types, and Operators (Values (String (used to represent text.,…
JS -Values, Types, and Operators
Values
Number
-
-
When operators appear together without parentheses, the order in which they are applied is determined by the precedence of the operators.
When multiple operators with the same precedence appear next to each other they are applied left to right
-
Special number: Infinity and -Infinity
Don’t put too much trust in infinity-based computation. It isn’t mathematically solid, and it will quickly lead to our next special number: NaN.
String
-
Almost anything can be put between quotes,
-
-
-
-
Unary Operator:typeof, -
Binary Operator: +, -, *, /
Ternary Operator: (true ? 1 : 2)
Boolean
Logical Operator: &, ||, !
Ordering string:
uppercase letters are always “less” than lowercase ones, and non-alphabetic characters (!, -, and so on) are also included in the ordering.
-
-
-