0

I want to know, in JavaScript, if is possible to change value of the variable within another variable.

var a;
a= 0;
b= a;
b= 1;

alert(a);

Why output of var a is 0 ? How can I have like output 1 ?

if b == a why when i change value of b doesn't change even value of var a ?

4

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.