January 03rd, 2024

What is JavaScript?

What is JavaScript?


JavaScript is a dynamic computer programming language. It is an Interpreted/Oriented Language. JavaScript is also known as client side/server side script. With the help of which a dynamic web page is created.

Features of JavaScript

JavaScript is executed in the web browser, that is, it can be run in the web browser without compiling.

  • JavaScript is case sensitive.
  • Every statement in JavaScript ends with a semicolon (;).
  • Most of the JavaScript control statements syntax is similar to the syntax of control statements in the C programming language.
  • One of the important features of JavaScript is that it can create new functions within scripts. Functions are declared in JavaScript using the function keyword.
  • JavaScript is known as a lightweight scripting language.

Advantages and Disadvantages of JavaScript

Some of the pros of using JavaScript as mentioned below:

1. Speed:- Being client-side, JavaScript is very fast as any code functions can be run immediately instead of connecting to the server and waiting for a reply. JavaScript code gets executed without even connecting to the server, which gives it some speed advantage.

2. Cross Platform:- It works smoothly in any operating system and popular web browsers. Like Google Chrome, Mozilla Firefox, Internet Explorer, Windows Operating System, Linux Based OS, Mac OS, Ubuntu ), Unix, Android etc.

3. Simplicity:- JavaScript is relatively simple to learn and implement.

4. Server Load:- Being client side, the requests on the server are reduced because JavaScript is executed in the web browser, and the load on the server is less.

5. Updates:- JavaScript keeps on releasing updates from time to time.

However there are some cons of using JavaScript such as:

1. Client-Side Security:- JavaScript code is executed on the users computer, so it has some security vulnerability.

2. Execution Vary:- JavaScript may work differently on different browsers i.e. its output is not consistent on all platforms.

3. No Support for Network Applications:- JavaScript cannot work with network applications, as there is no support available in JavaScript.

Like (1) Comments (4)



4 Comments Add Your Comment


Balvinder Singh
3 years ago Selected

JavaScript is a web scripting language used mainly for websites, one popular example is WordPress. JavaScript is used for adding functionality to websites when used with HTML/CSS.

Most of the sites, older ones still use JavaScript. Newer ones, use a modified version of JavaScript known as a typescript. But still many do use JavaScript, and both have similar functions, just typescript having modern standards.

Like (1) Reply
Rahul Gupta
3 years ago Selected

JavaScript is a dynamic computer programming language. It is an Interpreted/Oriented Language. JavaScript is also known as client side/server side script. With the help of which a dynamic web page is created. This web technology standard is the third layer of the cake.

Because it is a scripting language. That's why JavaScript code is coded along with the HTML page. JavaScript provides programming facilities to web designers and it is very useful for a web designer to have knowledge of JavaScript.

When a user sends a request for a webpage to a browser on the Internet, the computer server attaches the HTML code of that page as well as the JavaScript code and sends it to the web browser. After that the browser converts the code in the form of text and shows it to the user if required.

JavaScript can be used not only in any browser but also in the creation of cookies in server programs and web browsers. Just as the file extension of HTML is .html. Similarly, the file extension of JavaScript is .js. JavaScript is open and cross platform that means it can be used in many operating systems like Windows, Mac etc.

Like (1) Reply
Sujit Singh
3 years ago
JavaScript is a very commonly used client side scripting language. Or we can say that it is used in all major web browsers.

It has the largest library ecosystem of any programming language. Since it is a scripting language, its code can also be written in an HTML page.

So when a user requests an HTML page in which a JavaScript is present, then this script is sent to the browser and it is up to the browser what it wants to do with it.
Like (1) Reply
Mansoor Ahmed
2 years ago
This is a really informative and helpful article. Thanks for sharing.
Like (1) Reply

Post a Comment

To leave a comment, please Login or Register