Environment Setup

1/20/2020 7:13:40 AM

JavaScript Run on web browser so we need a web browser as well as we need any text editor. If you want to use sublime text, Notepad++, or Notepad etc text editor. HTML, CSS and JS work together so we write JavaScript code into html file and use script tag then write JavaScript Code.

Use HTML: “<script type="text/javascript"></script>”

Use HTML5: “<script></script>”

Given bellow the sublime text editor example code given bellow:

Note: Then got our web browser and right click our mouse and go to inspect element then go to console. We can see our coding output the console penal. Now given bellow the web browser console output code:

We can see the output into the console.