Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. var a;
  2.  
  3. function changeValue(newValue) {
  4. a = newValue;
  5. }
  6.  
  7. 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