Chapter 18m

JavaScript Introduction

What JavaScript does and where it runs.

JavaScript Introduction

JavaScript is the programming language of the web. Every modern website uses it to make pages interactive.

Where it runs

  • In every web browser (Chrome, Firefox, Safari)
  • On servers via Node.js
  • In mobile apps via React Native

Your First Line

Open the browser console and type:

js
console.log("Hello, World!");

Example

javascript
// Your first JavaScript
console.log("Hello, World!");
console.log("Welcome to w3primecode");