🚧 施工中
Last updated 2 years ago
Was this helpful?
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 -
bealean literals - true, false
octal literal / hexadecimal literal / ...
💡a literal is an expression.
String
octal literals not allowed in strict mode❗️
Lexical grammar ⟩ Literals
null
Boolean
ECMA ⟩ ⟩
octal literal
hexadecimal literal