🚧 施工中
JS ⟩ grammar ⟩ token ⟩ literal
(token) a data value that appears directly in a program.
3.14 // number (numeric literal) "hello" // string true // boolean null // absence of an object
object literal
array literal
template literal
Null literal - null
bealean literals - true, false
numeric literals
octal literal / hexadecimal literal / ...
string literals
regex literals
💡a literal is an expression.
String
octal literals not allowed in strict mode❗️
strict mode
Lexical grammar ⟩ Literals
null
Boolean
ECMA ⟩ Lexical Grammar ⟩ 12.8 Literals
octal literal
hexadecimal literal
Last updated 2 years ago