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


Smartphone icons created by Freepik - Flaticon

JS Hoisting

With var, you can use a variable before it is declared:

carName = "Volvo";
document.getElementById("demo").innerHTML = carName;
var carName;