Good evening everyone.
I am new to Javascript and am not understanding something probably very basic.
Can someone please tell me why I am not allowed to assign a new value of empty string to a variable using:
variable = "";
in the following code :
https://jsfiddle.net/58rztr71/2/
I have checked and the IF statement is working since I can use "alert("hi")" and it does alert Hi but trying to assign a new value is just not doing anything.
Sorry if my question is very stupid but i just don't get it...