DEV Community

Awais Butt
Awais Butt

Posted on


Introduction to javascript

Javascript is the most popular programming language. JavaScript was invented by Brendan Eich in 1995 and became an ECMA standard in 1997. The language was initially called LiveScript and was later renamed JavaScript. When javascript was created it had another name called “Livescript”. At that time java was very popular so it was decided that positioning a new language “young brother” of java. But after some time javascript became so popular with its own specification called ECMAScript and now it has no relation with java.

Why Study JavaScript?
JavaScript is one of the 3 languages all web developers must learn

  1. HTML to define the content of web pages
  2. CSS to specify the layout of web pages
  3. JavaScript to program the behavior of web pages

Javacsript can be added in our html page using two ways

Internal javascript

We can add JavaScript directly to our HTML file by writing the code inside the <script> tag. The <script> tag can either be placed inside the <head> or the <body> tag according to the requirement.

<html> <head><script>
    console.log(welcome to javascript);
    // html code 
Enter fullscreen mode Exit fullscreen mode

External javascript
We can write JavaScript code in other file having an extension .js and then link this file inside the <head> tag of the HTML file in which we want to add this code.

JavaScript features

JavaScript is the most popular language on earth.
JavaScript has vast features in client side like react and angular and moved into the server with Node.js and other frameworks.

JavaScript is capable of so much more. Here is a list that we can do with JavaScript:

  • JavaScript was created in the first place for DOM manipulation. Earlier websites were mostly static, after JS was created dynamic Web sites were made.
  • Functions in JS are objects. They may have properties and methods just like another object. They can be passed as arguments in other functions.
  • Can handle date and time.
  • Performs Form Validation although the forms are created using HTML.
  • No compiler or translator is needed.


Javascript is a lightweight and easy to use programming language.
JavaScript can be run on any operating system and in all the web browsers.
You need a text editor to write JavaScript code and a browser to display your web page.

Top comments (0)

Classic DEV Post:

modern frameworks

Concepts behind modern frameworks

Many beginners ask "which framework should I learn?" and "How much JS or TS do I need to learn before a framework?" - countless opinionated articles go into promoting the advantages of the author's preferred framework or library, instead of demonstrating the readers the concepts behind them to allow for an informed decision.