Java Script -Introduction and Editors

  Welcome to the world’s most popular scripting language. Yes....

It is JavaScript. A easy scripting language to learn. It has various versions starting from ES1 to ES6 and so many updated versions.

Java script is interpreted, object- oriented, tightly integrated with HTML. It provides a high degree of user interaction.

How to run JavaScript?

You can run with any browser. Because the browser has a run time environment for java script. So the user runs the script without any additional tools.

Coding in console

When you are using google chrome, open settings, Select inspect tab in sub menu, it opens console. There, you can write the javascript code.

If you are using other browsers, check the settings menu, more tools-> developer tools. Here, you can write the scripting in console.

Sample codes in console:

First,open the console by any one of the above method.

>console.log(‘Hello world’);

When you type this, you get the immediate response as

>Hello World

When you want to do any arithmetic operations, you can add the expressions here.

>2+3

<5

>5-4

<1

>4*5

<20

>56/8

<7

>9/5

<1.8

>7%5

<2

Now ,its your turn. You can check the console with own set of examples.

 Editors:

    For writing the java script, you need to have editors. Editors available for writing javascript is given below….

Notepad++ : It is easily available for windows users.  It has multiple tabs. So you can easily access a large code easily.

Eclipse : Even though it’s a java IDE,it supports java script too. It has some additional plugins for creating java script code. It is very useful in debugging.

Webstorm : It was developed by JetBrains. It supports React JS, Angular JS and so on. It has many facilities for creating, debugging, integrating and running a java script code.

Visual studio code: It is available for Windows, Linux, Mac OS. It has inbuilt facility for java script. It has many features like Auto-completion, code factoring and so on.

Brackets: It’s a open-source editor.  It’s a Adobe product. It mainly deals with web development and all scripting language programming.

Atom :It is a free software. Git Hub supports this editor. It has a single window in which you can create and run the code. It supports to download many templates you need.

Sublime Text: It is a user-friendly editor. It has many customization options. If you include JS Format plugin, then the editor is effective for java script programming.

These are the editors available for creating java scripts.

 

 

No comments:

Post a Comment