What does the above statement exactly mean?
The best way to learn any programming language is to keep practicing, keep coding.
- Ctrl+Shift-I / Command+Options+I
- Right click -> Inspect Element
- Browser options and find Developer tools option
Once you open the dev tools panel select Console.
Once you are done practicing small snippets, now it time to work with large/long code snippets.
Consider creating 2 files,
1. hello.html 2. hello.js
Add the following code snippets to respective files.
<html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script src="hello.js"></script> </body> </html>
Keep both files at the same location. Then load hello.html into your web browser using a file://URL Open the console, you will see the message “Hello World!”.
What does this mean? This means all language keywords, variables, function names, and identifiers should be typed/used with proper case.
var count = 0; Var Count = 0; Var COUNT = 0;
All of the above variables are referred to as different variables.
Another way to add a comment is a multi-line comment. Add your comment in between /* and */
//Single line comment /* Multi-line comment */
It is a simple name used to represent any variable, function, class, etc.
- The identifier should start with character.
- The identifier doesn’t allow special characters
- An identifier should not start with a digit.
- _ is considered a valid character to create an identifier.
The words that are reserved for language and not allowed for general use as an identifier are known as reserved keywords.
That’s it for this article.
Until then keep practicing, keep coding…
Hope you liked it.
Thanks for your time.
Hope you like it, if yes **like & share.**