Introduction to JavaScript

Introduction

1. JavaScript is a scripting and programming language.

2. It is purely object-based language. This means that variables, functions, and even primitive data types like numbers and strings are objects. Everything is an object in JavaScript.

3. It is a dynamically typed language, meaning the type of value stored in a memory block is checked at runtime. Because of this nature, we can store any type of value in a variable.

4. It is an object-oriented programming language, meaning we can create our own objects. (It is not purely object-oriented programming language.)

5. It is an interpreted language.

6. It is a synchronous language with a single-threaded architecture. Instructions get executed line by line.

7. It has a single call stack.

8. It was mainly introduced to instruct the browser.

9. JavaScript helps to provide behavior and functionality to webpages and helps to develop dynamic webpages.

10. Every browser has a JavaScript engine to run JavaScript code. Therefore, the browser becomes the environment to run JavaScript code.

11. To run JavaScript code outside the browser, we just need a JavaScript runtime environment (Node).

12. JavaScript is used to add functionality to websites.