This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

JS Operators

The ?. Operator

The ?. operator returns undefined if an object is undefined or null (instead of throwing an error).

Car name is:

const car = {type:"Fiat", model:"500", color:"white"};
let name = car?.name;
document.getElementById("demo").innerHTML = name;

Firefox for Android (v. 68.4.2) does not support this JavaScript feature. Chrome v. 117.0.5938.153 (Android 11) supports this JavaScript feature.