This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
The value (and the data type) of a variable with no value is undefined.
let car; document.getElementById("demo").innerHTML = car + "<br>" + typeof car;