Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

JavaScript: Important Notes

JavaScript Important Notes:

1) Javascript ignores tabs, space and new lines in program. So that you can format your program in a consistent way that makes code easy to understand and more readable.

2) JavaScript is a case-sensitive language. Means, keywords, variables, function names etc are case-sensitive.

3) Use // for single line comment. /* */ used to comment multiple lines.

4) You should not use reserve keyowrds of JavaScript as a variable name. i.e. break, boolean, delete, do, double, import, short, static, super, while, with.

5) Use === to check two operands values are equal or not and also checks the type.

6) Use window.print() command to print your current webpage.



This post first appeared on Frontend Skills, please read the originial post: here

Share the post

JavaScript: Important Notes

×

Subscribe to Frontend Skills

Get updates delivered right to your inbox!

Thank you for your subscription

×