dot notation (.)
`obj . prop` syntax.
Last updated
Was this helpful?
`obj . prop` syntax.
Last updated
Was this helpful?
JS ⟩ statement ⟩ expression ⟩ operator ⟩ left-hand side ⟩ property access ⟩ dot natation
(property access expression) ( chaining rules | table of operators )
use obj
. prop
to evaluate object property's value.
synonyms: "chaining", "chaining operator", "dot notation"
replit:dot notation
the "prop
" part must be an identifier
dot (.) punctuator is used.
possible errors:
SyntaxError:unexpected number ( needs valid identifier)