Javascript

Topic: JS Variables

How to Re-Declaring JavaScript Variables?

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

The value of the variable carname will still have the value "Volvo" after the execution of the following two statements:
var carname="Volvo";
var carname;

Browse random answers: