A variable declared without a value will have the value undefined.

The variable carName will have the value undefined after the execution of this statement:

var carName;

If you re-declare a JavaScript variable, it will not lose its value.

The variable carName will still have the value “Volvo” after the execution of these statements:

var carName = "Volvo";
var carName;

Yonggoo Noh

I am interested in Computer science and Mathematics.