Your technology certification is waiting. Enroll in Cloud Class ®
// x is equal to 4
x = 5;
// x is now equal to 5
var x = 4;
alert(x); // x is equal to 4
alert(x); // x is still equal to 4
Open in new window
this.value = 5;
var o = new myobject();
alert(o.value); // o.value = 5
fnc.value = 6;
alert(o.value); // o.value is now equal to 6
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.