Technology & Programming Enthusiast blog

<
OMNITECHIE
 

javascript global namespace variable

June 15, 2008 16:18 by Rickron

I am just refreshing  my javascript skill recently and I wonder if does anyone know where in vs2008 we can get the list of the global variable declared in the debugger?

 let's see an unsual couple of line inside the <script> block like that:

( function (){

 ggg = 999;

return function(){return 0;}

})();

It create a global variable ggg that should hold a value as soon the <script> is loaded along the html page. It works because this global variable is helded into memory using the javacript closure mecanism.

In this case (and in fact also for any global variable ) I have a problem to list these variables from container like typing the this keyword into the quick watch and you get the content of current object . Any idea ? Is there a language keyword that would allow us to see these variables ?

Rick


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

September 7. 2008 05:55