0
If in two cases var text has different value than how will the browser decide which one to put?
6 Réponses
+ 1
i think it can only have one value, though it can have sever al functions, so u have to reassign the value, then it goes with the most recently assigned variable. example var explanation=("confusing" )
explanation=("clear") ;{
document.write(explanation)};
--------- result will be
clear
+ 1
it is read from the top down...so if you state var x = 3, and then var x = 4. x will now be four.
+ 1
last line will overwrite the previous one
0
the latter one
0
the later assigned value.
0
If properly defined it will go for the most recent