Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

JavaScript Syntax and IDE

JavaScript Syntax and IDE

The syntax of JavaScript is the set of rules that define a correctly structured JavaScript program. JavaScript can be implemented in a webpage using JavaScript statements that are placed within the <script>… </script> HTML tags in a web page. If you are using HTML5 standard then syntax will be like

alert( "First JavasSript Code");

If you are using HTML4 or below then use syntax

<script language="javascript" type="text/javascript">
alert( "First JavasSript Code");

JavaScript Comments

For single line comments use “// ” and for multi-line comments use “/*   */”, See below given example …

// Single line commnets
* Multi line comments line 1
* Multi line comments line 2

JavaScript Editor or IDE

One can start javascript programming using simple editor Notepad, Gedit, Vi and can use advance ide like

  • Notepad++ (Windows only)
  • Geany
  • Kate
  • SublimeText
  • ATOM
  • Visual Studio Code

If you are running Linux(ubuntu based) and want to install geany, Kate, SublimeText , Atom and visual Studio code then read my post Best Text Editor / IDE on Ubuntu, Linux Mint .

5 1 vote
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments