2 artifacts
Tap to collapse details
console.log('Hello, JavaScript!');
index.html
<!DOCTYPE html> <html> <body> <script> console.log('Hello from HTML!'); let name = 'Learner'; console.log('Hi, ' + name); </script> </body> </html>
Practice let, const, basic types.
let
const
❌ Using var instead of let/const
→Prefer let for reassigned vars, const for constants per modern standards
❌ Not using strict mode
→Add 'use strict'; at top of scripts for better error catching
Tap to expand details
Spin up a personalized “learn JavaScript” plan you can save, check off, and return to anytime — unlimited on the free trial.
freeCodeCamp
The Odin Project
by Marijn Haverbeke
Official reference and guides
Modern tutorial with interactive tasks
Try-it-yourself examples
Powerful editor with JS extensions
Console, debugger, inspector
Server-side JS runtime