How to print hello world in JavaScript
To print a hello world in JavaScript follow the below steps.
- Open your browser.
- Now left click in your mouse and select
inspect
option. - Now click on the
console
tab. - Add the below code.
console.log('Hello World');
It will print a hello world in your browser’s console.