If you redeclare a JavaScript variable, it will not lose its original value.
var x=5; var x; |
After the execution of the statements above, the variable x will still have the value of 5. The value of x is not reset (or cleared) when you redeclare it.
0 comments: