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
Curriculum
  1. 01
    let, const and var
    Log in
    Three ways to name a value, and the bug each one prevents.
  2. 02
    The eight types
    Log in
    A duration, a topic, a yes or no, and nobody yet: each is a different kind of value.
  3. 03
    Type conversion
    Log in
    The duration arrives from the URL as a string. Adding a 15-minute buffer gives 9015.
  4. 04
    Comparing values: == and ===
    Log in
    The menu gives the string 10, but the open hours are numbers. Is the slot free?
  5. 05
    Conditionals and loops
    Log in
    The page must label long sessions, sort slots into morning and afternoon, and make a button for every open hour.
  6. 06
    ||, &&, ?? and ?.
    Log in
    No duration in the URL, a reminder at 0 that becomes 15, and a crash on the interviewer's name.
  7. 07
    Functions: declarations, expressions and arrows
    Log in
    Every slot needs the same label logic, and slot buttons made in a loop book the wrong hour.
  8. 08
    Arrays: the basics
    Log in
    The page keeps a list of open hours. Slots open, pass and get booked, so the list keeps changing.
  9. 09
    Objects: the basics
    Log in
    A booking has a topic, a duration and an hour that belong together.
  10. Final
    The fundamentals challenge
    Log in
    Twelve questions from across the course. Pass it to claim your certificate.