Introduction to JavaScript | What is JavaScript ?

The JavaScript is a premier client-side scripting language used on the Web today. It is a dynamic computer programming language which is also lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. The JavaScript is an interpreted programming language with object-oriented capabilities.

History of JavaScript :

The development of JavaScript began in 1995 at Netscape Communications, the makers of the Netscape browser. The first version of this language was actually named Mocha in May 1995, renamed to LiveScript in September 1995, and again renamed to JavaScript in December 1995. JavaScript made its first appearance in Netscape 2.0 in 1995 with the name LiveScript. The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers.

  • JavaScript is a lightweight, interpreted programming language.
  • Designed for creating network-centric applications.
  • Complementary to and integrated with Java.
  • Complementary to and integrated with HTML.
  • Open and cross-platform.

Use of JavaScript :

JavaScript is the interactive member of the trinity of the client-side web technologies that also includes HTML and CSS. Client-side JavaScript is the most common form of the language. The script should be included in or referenced by an HTML document for the code to be interpreted by the browser. It means that a web page need not be a static HTML, but can include programs that interact with the user, control the browser, and dynamically create HTML content.


Creating a simple JavaScript :

Now lets create our first JavaScript code to print hello world on the page.
<html>
<head>
  <title>Javascript</title>
</head>
<html>
<body>
  <script>
    document.write(" Hello world !!.");
  </script>
</body>
</html>
Output :


As we see in the above code the JavaScript code will be written between <script> ... </script> tag within the html body.


Next Topic :