Lesson 1 of 20
JavaScript Basics
Understand where JavaScript runs and what it controls on a webpage.
Introduction
JavaScript adds behavior to websites and also runs on servers through environments such as Node.js.
In the browser it can respond to user actions, update the page and communicate with APIs.
Key insight
Understand where JavaScript runs and what it controls on a webpage.
Example
console.log("Hello, JavaScript!");This example shows the core javascript basics idea in a small, runnable program.
Real-world example
JavaScript Basics appears in everyday application code, scripts and APIs.
Test yourself
2-question check
1
What is the main idea in JavaScript Basics?
2
Where can javascript basics be useful?
Ready to check your understanding?
Answer every question, then submit your quiz.
Try it yourself
JavaScript compiler
Runs in your browser. Nothing is sent to a server.
Output appears here
Practice challenge
Log your name and current learning goal.