All courses
Course · Free
JavaScript Fundamentals
Know another language? Learn the core of JavaScript by building a mock interview booking page: variables, types, conditionals, loops, functions, arrays and objects. Predict what each line prints.
9
Lessons
102
Steps
About 1.5 hours
Duration
Your own
Pace
Short on time? Read the recap and interview answers
Curriculum
- 01let, const and varLog inThree ways to name a value, and the bug each one prevents.
- 02The eight typesLog inA duration, a topic, a yes or no, and nobody yet: each is a different kind of value.
- 03Type conversionLog inThe duration arrives from the URL as a string. Adding a 15-minute buffer gives 9015.
- 04Comparing values: == and ===Log inThe menu gives the string 10, but the open hours are numbers. Is the slot free?
- 05Conditionals and loopsLog inThe page must label long sessions, sort slots into morning and afternoon, and make a button for every open hour.
- 06||, &&, ?? and ?.Log inNo duration in the URL, a reminder at 0 that becomes 15, and a crash on the interviewer's name.
- 07Functions: declarations, expressions and arrowsLog inEvery slot needs the same label logic, and slot buttons made in a loop book the wrong hour.
- 08Arrays: the basicsLog inThe page keeps a list of open hours. Slots open, pass and get booked, so the list keeps changing.
- 09Objects: the basicsLog inA booking has a topic, a duration and an hour that belong together.
- FinalThe fundamentals challengeLog inTwelve questions from across the course. Pass it to claim your certificate.



