Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a;
- function changeValue(newValue) {
- a = newValue;
- }
- alert("Value of 'a' outside the function " + a); //I want this to output the value of newValue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement