node ecmascript2020 code example
Example 1: what is es11
let flowers = ['lily', 'daisy', 'rose']
console.log(flowers[1]) // daisy
flowers = null
console.log(flowers[1]) // TypeError: Cannot read property '1' of null
console.log(flowers?.[1]) // undefined
Example 2: what is es11
console.log(flower.species?.lily) // undefined