A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/introduction-to-javascript below:

Introduction to JavaScript - GeeksforGeeks

Introduction to JavaScript

Last Updated : 29 Jul, 2025

JavaScript is a versatile, dynamically typed programming language that brings life to web pages by making them interactive. It is used for building interactive web applications, supports both client-side and server-side development, and integrates seamlessly with HTML, CSS, and a rich standard library.

Javascript "Hello, World!" Program in Browser Console

A "Hello, World!" program is the simplest way to get started with any programming language. Here’s how you can write one using JavaScript.

HTML
<html>
<head></head>
<body>
    <h1>Check the console for the message!</h1>
    <script>
        // This is our first JavaScript program
        console.log("Hello, World!");
    </script>
</body>
</html>

In this example

"Hello World" Program in Server Console

We can also print the "Hello World" program directly into the console terminal without embedded it into HTML. Create an index.js file and add the code to it.

JavaScript
// This is a comment
console.log("Hello, World!");

Run it in your terminal with:

node hello.js

Output:

Hello, World!

Comments are notes in your code that the JavaScript interpreter ignores. They’re great for explaining what your code does or for testing purposes.

C++
// This is a single-line comment
C++
/* This is a multi-line comment
   spanning multiple lines */
Key Features of JavaScript

Here are some key features of JavaScript that make it a powerful language for web development:

Client Side and Server Side nature of JavaScript client side and server side

JavaScript's flexibility extends to both the client-side and server-side, allowing developers to create complete web applications. Here’s how it functions in each environment:

Client-Side:

Server-Side:

Programming Paradigms in JavaScript

JavaScript supports both imperative and declarative programming styles:

Limitations of JavaScript

Despite its power, JavaScript has some limitations to consider:

JavaScript Versions

Let’s take a look at the different versions of ECMAScript, their release years, and the key features they introduced

Version

Year

Key Features

ES5

2009

strict mode, JSON, getters/setters

ES6

2015

let/const, classes, arrow functions

ES7-ES13

2016-2022

async/await, BigInt, optional chaining

ES14

2023

toSortedfindLast, static blocks

Note: Older versions of browsers do not support ES6.


Introduction of JavaScript First program - Hello Geeks

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4