The syntax for directly accessing a property is a single period character, with a left-side operand that is the object you wish to access, and with a right-side operand that is the property name you wish to access:
const street = { name: 'Marshal St.'};street.name; // => "Marshal St."
The right-side operand must be a valid JavaScript identifier, and as such, cannot start with a number, cannot contain whitespace, and in general, cannot contain any punctuation characters that exist elsewhere within the JavaScript specification. You can, however, have properties that are named with so-termed exotic Unicode characters such as Ï (PI):
const myMathConstants = { Ï: Math.PI };myMathConstants.Ï; // => 3.14...
This is ...