What is javascript
Last updated: April 1, 2026
Key Facts
- JavaScript was created in 1995 by Brendan Eich and was originally called Mocha and then LiveScript before being renamed JavaScript
- Despite its name, JavaScript is not directly related to Java; the name was chosen for marketing reasons when Java was popular
- JavaScript can run on the client-side (in browsers) and server-side (using Node.js), making it versatile for full-stack development
- The language uses event-driven programming and supports object-oriented and functional programming paradigms
- JavaScript is standardized through ECMAScript (ES), with regular updates like ES6/ES2015 introducing major improvements like classes and arrow functions
Overview
JavaScript is a high-level, interpreted programming language that powers interactive features on websites and web applications. Created in 1995 by Brendan Eich while working at Netscape Communications Corporation, JavaScript has evolved into one of the most important languages in modern web development. It enables developers to create dynamic, responsive user experiences by manipulating web pages in real-time based on user interactions.
History and Development
JavaScript was developed rapidly in 1995 under the name Mocha, then LiveScript, before being renamed JavaScript. The name change was a marketing decision to capitalize on the popularity of Java at the time, though the two languages are fundamentally different. JavaScript was standardized in 1997 as ECMAScript by ECMA International. Major language updates, particularly ES6 (ECMAScript 2015), introduced modern features like classes, arrow functions, promises, and modules, transforming how developers write JavaScript code.
Client-Side and Server-Side Execution
JavaScript originally ran only in web browsers on the client-side, manipulating HTML and CSS to create dynamic interfaces. However, the introduction of Node.js in 2009 enabled JavaScript to run on servers, allowing developers to use the same language for both frontend and backend development. This has made JavaScript popular for full-stack development, where developers can use a single language across entire application stacks.
Features and Capabilities
JavaScript supports multiple programming paradigms including object-oriented programming, functional programming, and event-driven programming. The language is dynamically typed, meaning variable types are determined at runtime. JavaScript includes features like closures, higher-order functions, asynchronous programming with promises and async/await, and comprehensive built-in objects for working with data, dates, and regular expressions. These features make JavaScript flexible and powerful for diverse programming tasks.
Modern Usage and Frameworks
Today, JavaScript dominates web development with numerous frameworks and libraries like React, Vue.js, Angular, and Next.js enabling developers to build complex single-page applications. JavaScript is used for creating interactive maps, real-time chat applications, data visualization, and collaborative tools. Its ubiquity across all major web browsers and its ever-expanding ecosystem of tools and libraries continue to make it the de facto language of web development.
Related Questions
Is JavaScript the same as Java?
No, JavaScript and Java are completely different programming languages despite their similar names. Java is a compiled, statically-typed language used for various applications, while JavaScript is an interpreted, dynamically-typed language primarily for web development. The similar naming was a marketing decision.
What programming language was JavaScript based on?
JavaScript was primarily influenced by Scheme, Self, and Java's syntax, created by Brendan Eich in 1995. It adopted Scheme's first-class functions and closures, Self's prototype-based object model, and Java-like syntax for accessibility to Java developers. Despite sharing syntax similarities with Java, JavaScript inherited functional programming concepts that make it fundamentally different from Java's object-oriented approach.
Can JavaScript run on servers?
Yes, JavaScript can run on servers using Node.js, a runtime environment created in 2009. Node.js allows developers to use JavaScript for server-side programming, database operations, and API development, enabling full-stack JavaScript development.
Can JavaScript run on servers?
Yes, JavaScript can run on servers through Node.js, released in 2009, which uses Google's V8 engine. Node.js enables developers to use JavaScript for backend development, handling over 16 billion requests daily across millions of servers worldwide. It powers production systems at Netflix, Uber, LinkedIn, and thousands of other companies for real-time applications and APIs.
What can you build with JavaScript?
JavaScript can be used to build websites, web applications, mobile apps (using frameworks like React Native), desktop applications (using Electron), games, real-time applications, APIs, and more. Its versatility and the extensive ecosystem of libraries and frameworks make it suitable for many types of projects.
What is the difference between JavaScript and ECMAScript?
ECMAScript is the standardized specification for JavaScript, maintained by ECMA International (Technical Committee 39). JavaScript is the implementation of that standard by browsers and Node.js, sometimes with additional features or libraries. The ECMAScript standard ensures consistency across different JavaScript engines, with new versions (ES6/ES2015, ES2024, etc.) released annually, introducing features that JavaScript engines implement over time.
Why is JavaScript so widely used?
JavaScript dominates web development because it's the only language natively supported by web browsers, with 98.7% of websites using it. Its low barrier to entry, flexibility, and extensive ecosystem of libraries and frameworks make it accessible to beginners while powerful for experts. The ability to use one language across frontend and backend development through Node.js further increased adoption, creating a unified development experience.
Is JavaScript secure for sensitive data?
JavaScript running in browsers is not secure for sensitive data because code is visible to all users and can be intercepted. Developers should never store passwords, API keys, or personal information in browser-side JavaScript or local storage. Sensitive operations must be handled on secure backend servers, with JavaScript only communicating with those servers through authenticated, encrypted HTTPS connections.
More What Is in Daily Life
Also in Daily Life
More "What Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Wikipedia - JavaScriptCC-BY-SA-4.0
- MDN Web Docs - JavaScriptCC-BY-SA-2.5
- ECMA International - ECMAScript StandardOfficial