JavaScript Overview

  • JavaScript is a high-level, interpreted and popular programming language.
  •  It is widely used for web development to create dynamic and interactive web pages.
  • It is easily written inside HTML in script tag or in a seperate file and imported in HTML file.
  • it give html web pages a dynamic behaviour.
  • nowadays , We have javascript in server side as well which is used to write micro-services, web services with the help of javascript engine.
  • there are a-lot of libraries and frameworks built on top of javascript. below are some of the example:
  1. React js
  2. Vue.js
  3. Angular js
  4. jQuery
  5. Ext.js
  6. Backbone.js
  7. Ember.js
  8. Meteor
  9. Mithril
  10. Node.js
  11. Polymer
  12. Aurelia
  13. react native etc.

Why Javascript ?

  1. Web/UI Development: JavaScript is widely used and popular for creating
    • dynamic and interactive web pages
    • creating pop-ups,
    • animating elements
    • manipulating the Document Object Model (DOM) etc.
  2. Server-side Services: JavaScript can be used for server-side development with technologies such as Node.js, allowing developers to build full-stack applications using only JavaScript.
  3. Mobile App Development: JavaScript can be used to develop hybrid mobile apps for iOS and Android platforms using tools like React Native.
  4. Game Development: JavaScript can be used to create 2D & 3D games for the web using frameworks such as Phaser and Babylon.js.
  5. Desktop Applications: JavaScript can be used to build cross-platform desktop applications using tools like Electron.
  6. Internet of Things (IoT): JavaScript can be used to develop applications for IoT devices, such as controlling sensors and actuators.

JavaScript – Syntax

type − This attribute indicate the scripting language used. its an optional attribute.

JavaScript CodeEditor

You can use any IDE . I prefer Visual Studio Code.

  1. download Visual Studio Code from this link :
  2. once downloaded, Open Visual Studio Code.
  3. Click File in the top left corner.
  4. Click New File and Enter name as “index.html”. ( note: filetype of new file should be .html extension)
  5. Type the HTML JavaScript code you want to use.

6. To run, Right click & click on “open with browser”.

7. You will see, output as: Hello World !!

Things about JavaScript

  1. JavaScript ignores spaces, tabs, and newlines that appear in JavaScript programs. you can free to use for formatting.
  2. Semicolons are optional in JavaScript.

both statement is same .

3. JavaScript is a case-sensitive language.

4. support both single line and block comment.


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top