Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Tips and tricks about JavaScript from Google

JavaScript is now a very popular client side language. It's flexible, powerful but easy to make mistakes. So good programming style is better for you to write efficient and readable JavaScript codes. Here are some tips and tricks about JavaScript from Google.True and False Boolean ExpressionsThe following are all false in boolean expressions:nullundefined'' the empty string0 the numberBut be careful, because these are all true:'0' the string[] the empty array{} the empty objectThis means that instead of this:while (x != null) {you can write this shorter code (as long a...

16,062 1       JAVASCRIPT GOOGLE CODING STANDARD