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.
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.