← Courses
LANG JS · 3 credits
Course Outline
JavaScript for Beginners
JavaScript as your second language after Python. Learn the syntax, types, arrays, objects, and functions by writing and running small console programs, master the functional array toolkit (map, filter, reduce), then build three pure-JavaScript mini-projects: a to-do data model, a cart calculator, and a text statistics tool.
What you will learn
- ✓Write and run JavaScript programs that print with console.log, using variables, template literals, and the right choice of let vs const
- ✓Translate Python habits into JavaScript: dynamic types, === comparisons, truthiness, and the loop and conditional forms JS actually uses
- ✓Model data with arrays and objects, convert to and from JSON, and iterate with for...of, Object.keys, and Object.entries
- ✓Use map, filter, reduce, find, some, and every to transform data without hand-written loops
- ✓Read error messages, handle failures with throw and try/catch, and debug small programs methodically
- ✓Build pure-JavaScript mini-projects: a to-do data model, a cart calculator, and a text statistics tool
Course outline
Unit 1Hello JavaScript
- 1-1Your first JavaScript program3 checks · 8 min
- 1-2Numbers and math4 checks · 8 min
- 1-3Strings and template literals4 checks · 9 min
Unit 2Variables and types
- 2-1let and const4 checks · 8 min
- 2-2Dynamic types and typeof4 checks · 8 min
- 2-3=== vs == and truthiness4 checks · 10 min
Unit 3Conditionals and loops
- 3-1if, else if, else5 checks · 9 min
- 3-2switch3 checks · 8 min
- 3-3Loops: for, while, for...of4 checks · 11 min
Unit 4Arrays
- 4-1Creating and indexing arrays4 checks · 9 min
- 4-2Growing and shrinking arrays4 checks · 9 min
- 4-3Array iteration patterns4 checks · 10 min
- 4-4Copying, sorting, and slicing3 checks · 10 min
Unit 5Objects and JSON
- 5-1Objects: labeled data4 checks · 9 min
- 5-2Nesting and iterating objects4 checks · 10 min
- 5-3JSON: objects as text3 checks · 9 min
- 5-4References: two names, one object3 checks · 9 min
Unit 6Functions
- 6-1Declaring functions5 checks · 9 min
- 6-2Function expressions and arrow functions3 checks · 9 min
- 6-3Scope: who can see what3 checks · 9 min
- 6-4Callbacks: handing a function to a function3 checks · 9 min
Unit 7The array toolkit: map, filter, reduce
- 7-1map and filter5 checks · 10 min
- 7-2find, some, every3 checks · 9 min
- 7-3reduce: fold to a single value4 checks · 10 min
Unit 8Strings, numbers, and errors in practice
- 8-1String methods you will actually use5 checks · 10 min
- 8-2Parsing and formatting numbers3 checks · 9 min
- 8-3Errors, throw, and try/catch4 checks · 11 min
Unit 9Mini-projects in pure JavaScript
- 9-1Project: a to-do data model4 checks · 13 min
- 9-2Projects: cart calculator and text stats4 checks · 14 min
Practice while you learn
Use Hack University's public online code editor when you want to run code online before committing to the full curriculum. The browser compilers are free for quick syntax checks, exercises, and interview practice in an isolated sandbox environment.