shaselton1.blogspot.com
random ramblings: October 2010
http://shaselton1.blogspot.com/2010_10_01_archive.html
Monday, October 18, 2010. Javascript patterns and antipatterns. Here is my little attempt to show little snippets that I've learn along the way that are essential for me to be 100% confident in my code. MyVar = 5; / antipattern. Var myVar = 5;. Both of these statements are valid, and for the most part they will do what the author expects them to do, but they are different. The variable lacking the 'var' is called an. And the other is an. Function MyFunction( args1 ) {. MyVar = 5;. If ( args1 = = myVar ) {.
shaselton1.blogspot.com
random ramblings: Javascript patterns and antipatterns
http://shaselton1.blogspot.com/2010/10/javascript-patterns-and-antipatterns.html
Monday, October 18, 2010. Javascript patterns and antipatterns. Here is my little attempt to show little snippets that I've learn along the way that are essential for me to be 100% confident in my code. MyVar = 5; / antipattern. Var myVar = 5;. Both of these statements are valid, and for the most part they will do what the author expects them to do, but they are different. The variable lacking the 'var' is called an. And the other is an. Function MyFunction( args1 ) {. MyVar = 5;. If ( args1 = = myVar ) {.