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 tag. The <script> tag can either be placed inside the <head> or the <body> tag according to the requirement.<br>
Example<br>
<html><head></p>

<script>
console.log(“welcome to javascript”);



// html code



Top comments (0)