Introduction to JavaScript

Last Updated : 4 Aug, 2026

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 and supports both client-side and server-side development.

  • Dynamically typed: Variable types are determined at runtime.
  • Single-threaded: Executes one task at a time (but supports asynchronous operations).
  • Compiled and interpreted: Modern JavaScript engines combine compilation and interpretation for better performance.

"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>
Screenshot-2026-04-21-150954
Web Output of the Code