2 artifacts
Tap to collapse details
basics.js
Follow javascript.info fundamentals:
console.log('Hello, JavaScript!');
let name = 'Learner'; const pi = 3.14;
+
-
===
!==
Paste code into console or save as HTML file with <script src="basics.js"></script> and open in browser.
<script src="basics.js"></script>
let message = 'Hello'; console.log(message + ' World!');
❌ Confusing `=` assignment with `==` comparison
→Use `let x = 5;` for assignment, `x == 5` to compare
❌ Ignoring strict mode
→Add '"use strict";' at top of scripts
❌ Not checking typeof
→Use `typeof variable` to verify data types
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
MDN Web Docs
javascript.info
by Marijn Haverbeke
Comprehensive official reference and tutorials
Daily lessons with exercises and projects
Modern tutorial with examples and tasks
Powerful free code editor with JS extensions
Online playground for HTML/CSS/JS
Collaborative JS playground for pens