What is javascript
- Javascript is a lightweight, cross-platform and object-oriented computer programming language.
- Lightweight: The Javascript uses very little memory of the computer. And Javascript has a very simple syntax.
- Cross-platform: Javascript can be used on multiple platforms and systems.
- 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.
- Javascript is one of the three core technologies of web development.
- 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?
- JavaScript can create an HTML document with the help of the DOM.
- JavaScript can update an HTML document content with the help of the DOM
- JavaScript can remove or delete an HTML document content with the help of the DOM.
- JavaScript can get geographical information with the help of the Geolocation API.
- JavaScript can create animated 2D and 3D graphics with the help of Canvas and WebGL APIs.
- JavaScript can manage multimedia elements like Audio and Video with the help of Audio and Video APIs.
- 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.