• Post Reply Bookmark Topic Watch Topic
  • New Topic

how i can see this output?  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,i don't know what is the output first time of alert( ) and the second time of alert( ),wou;d anyone teach me?thanks all of you
the question:
var scope="global";
function f( ) {
alert(scope);
var scope="local";
alert(scope);
}
f( );
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That appears to be JavaScript and this is a Java forum - might I suggest you repost this to the HTML and JavaScript forum?
[ March 16, 2004: Message edited by: eammon bannon ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!