JavaScript in Action! #JS-Shorts [5]

JS-Shorts Start Now Free Course. For any one wish to learn JavaScript. Learn from basics to Implementation of JS in real time projects. #Code #Debug #Test and #Release.

JavaScript in Action! #JS-Shorts [5]

JavaScript in Action -

Every browser has a JavaScript engine and we can easily write JS-code in a browser without any additional tool.

We can write any valid JavaScript code in the browser console like this:

  1. Right click in the browser
  2. Then click `Inspect`
  3. Open `Console` tab
  4. Enter this command

console.log('Hello World!');

Above we can see the Hello World! message in the console. We can also write mathematical expression here.

For example: 2+2 it returns 4.

We can also call alert('Hello');


Next

Setup Development Environment for JavaScript. #JS-Shorts [6]
Run JavaScript Code in Live Server. JS-Shorts Start Now Free Course. For any one wish to learn JavaScript. #Code #Debug #Test and #Release.