- If you don’t explicitly declare a variable, you risk creating an implied global variable. This is a problem, as you will be unable to create multiple instances of that object, as each new instance will overwrite the data from the last.
- In general, global variables should be used only in very specific situations and are typically not recommended, as they can lead to a lot of odd side effects that may be difficult to track down.
Monday, June 29, 2015
What happens when you don’t declare a variable in Javascript?
Subscribe to:
Post Comments (Atom)
What is restrict option in directive?
The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...
-
JavaScript is a general-purpose programming language designed to let programmers of all skill levels control the behavior of software objec...
-
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with...
http://astutejs.blogspot.in/2015/07/extjs-simple-extjs-grid.html
ReplyDelete