DEV Community

Cover image for An Introduction to JavaScript Programming
Navinda Lankesh
Navinda Lankesh

Posted on • Updated on

An Introduction to JavaScript Programming

JavaScript is a high-level, lightweight, interpreted programming language. And it is most well known as the scripting language for Web pages, and non-browser environments. JavaScript is a prototype based, weakly typed, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative styles. JavaScript was designed by Brendan Eich in 1995. The standard for JavaScript is ECMAScript. ECMAScript 6 (or ES6) is the latest major version of the ECMAScript standard.

JavaScript is the programming language of HTML and the Web. Alongside HTML, CSS, and JavaScript is 3 core technologies of World Wide Web.

Alt Text

JavaScript Frameworks

There are many JavaScript frameworks available. JavaScript is versatile and can be used for both frontend and backend development as well as for testing websites or applications as well.

Below frameworks are the most popular JavaScript frameworks in the current time on worldwide webs.

React JS, Vue JS, Angular JS, Ember JS, Preact JS, Svelte Js, Meteor JS, Mithril, Node JS, Polymer, Aurelia, Backbone JS, Express JS, Next JS, Gatsby JS, Nuxt JS, jQuery, Jest, Mocha, Jasmine.

Alt Text

Advantages of JavaScript

Speed

JavaScript tends to be very fast because it is often run immediately within the client's browser. So long as it doesn't require outside resources, JavaScript isn't slowed down by calls to a backend server. Also, there's no need to compile the code before running it.

Simplicity

JavaScript is relatively easy to learn and implement compared to other popular languages.

Popularity

JavaScript is everywhere on the web. There are countless resources to learn JavaScript.

Interoperability

JavaScript can be inserted into any web page. JavaScript can be used in many kinds of applications because of support in other languages.

Server Load

JavaScript is client-side, it reduces the demand on servers overall, and simple applications may not need a server at all.

Rich interfaces

JavaScript can be used to create features like drag and drop and components such as sliders, all of which greatly enhance the user interface and experience of a site.

Extended Functionality

Developers can extend the functionality of web pages by writing snippets of JavaScript for third party add-ons.

Disadvantages of JavaScript

Client-Side Security

Because code is executed on the client-side, bugs and oversights can sometimes be exploited for malicious purposes. Because of this, some people choose to disable JavaScript entirely.

Browser Support

Different browsers sometimes interpret JavaScript code differently. This makes it somewhat difficult to write code for cross browser.

Top comments (0)