Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

What is JavaScript?

What is javascript

  1. Javascript is a lightweight, cross-platform and object-oriented computer programming language.
  2. Lightweight: The Javascript uses very little memory of the computer. And Javascript has a very simple syntax.
  3. Cross-platform: Javascript can be used on multiple platforms and systems.
  4. Object-oriented: Javascript is a language that’s based on objects. Everything will be objecting to the Javascript. We will cover in the next chapters.
  5. Javascript is one of the three core technologies of web development.
  6. Javascript can be used on both client-side and server-side.

Javascript on client-side:
JavaScript is a core client-side scripting or programming language which consists of a rich set of programming features that allow you to develop interactive and event-based web pages. JavaScript popularly used to dynamically update HTML and CSS to change in a user interface and in the beginning, JavaScript scripting language was introduced especially for the web pages but nowadays javascript can be used with NodeJS and some of the frameworks in the NodeJS. JavaScript is called as the third layer of the standard web technologies and remaining are HTML and CSS.

What javascript can do on the client-side?

  1.  JavaScript can create an HTML document with the help of the DOM.
  2. JavaScript can update an HTML document content with the help of the DOM
  3. JavaScript can remove or delete an HTML document content with the help of the DOM.
  4. JavaScript can get geographical information with the help of the Geolocation API.
  5. JavaScript can create animated 2D and 3D graphics with the help of Canvas and WebGL APIs.
  6. JavaScript can manage multimedia elements like Audio and Video with the help of Audio and Video APIs.
  7. JavaScript can implement Third-party APIs like Facebook, Google, Instagram.

How does javascript run?
When the browser finds any block of JavaScript block in the document, it generally starts executing in the top to bottom order, so you need to be careful while placing your block of code.

Javascript on the server-side:
Javascript can be used as a backend scripting language with the help of node js. Node.js is a cross-platform run time environment and it can execute javascript code in it.

Node.js platform runs on a V8 engine that is built by Google. Node js is specially developed for building very high-end scalable network applications.  it’s been single-threaded. Node.js platform can run on Windows, Linux, Unix, Mac OS X.

Also, read How to create an object in javascript?

One thought on “What is JavaScript

Comments are closed.