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

<script>
alert( "First JavasSript Code");
</script>

If you are using HTML4 or below then use syntax

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

JavaScript Comments

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

<script>
// Single line commnets
/*
* Multi line comments line 1
* Multi line comments line 2
*/
</script>

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
Subscribe
Notify of
guest

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

0 Comments
Inline Feedbacks
View all comments