JavaScript bootcamp

Question on the left. Your JavaScript on the right. Check it.

Each lab is one problem: read the spec, write a solution, press Run, then Check. Hints stay closed. The correct code is there when you need it. the console grades stdout against hidden tests.

50 labs · 30 easy · 20 medium · progress stays in this browser.

  1. Read the questionInput, output, and a short example. Same shape as a classroom worksheet.
  2. Write JavaScript, then RunThe starter is a skeleton. Change it, then see what happens.
  3. Check, or open a hintCheck runs every test. Hint and correct code stay folded until you open them.

Labs

Work them in order, or jump ahead when you are ready.

  1. 01easy

    Hello, JavaScript

    Output · 5 min

    Open lab
  2. 02easy

    Sum two numbers

    Input · 8 min

    Open lab
  3. 03easy

    Celsius to Fahrenheit

    Math · 8 min

    Open lab
  4. 04easy

    Even or odd

    If Else · 8 min

    Open lab
  5. 05easy

    Letter grade

    If Else · 10 min

    Open lab
  6. 06easy

    Largest of three

    If Else · 10 min

    Open lab
  7. 07easy

    Times table

    For · 10 min

    Open lab
  8. 08easy

    Squares on one line

    For · 10 min

    Open lab
  9. 09easy

    Sum 1 to n

    While · 10 min

    Open lab
  10. 10medium

    FizzBuzz

    For · 12 min

    Open lab
  11. 11medium

    Fibonacci sequence

    For · 12 min

    Open lab
  12. 12easy

    Count the words

    Strings · 8 min

    Open lab
  13. 13easy

    Count the vowels

    Strings · 10 min

    Open lab
  14. 14easy

    Reverse a word

    Strings · 8 min

    Open lab
  15. 15medium

    Palindrome check

    Strings · 10 min

    Open lab
  16. 16medium

    Anagram check

    Strings · 12 min

    Open lab
  17. 17medium

    Maximum in an array

    Arrays · 12 min

    Open lab
  18. 18easy

    Average of an array

    Arrays · 10 min

    Open lab
  19. 19medium

    Second largest

    Arrays · 12 min

    Open lab
  20. 20medium

    Unique and sorted

    Sets · 10 min

    Open lab
  21. 21medium

    Word frequency

    Objects · 15 min

    Open lab
  22. 22medium

    Factorial function

    Functions · 12 min

    Open lab
  23. 23easy

    Leap year

    If Else · 10 min

    Open lab
  24. 24easy

    Sum of digits

    While · 10 min

    Open lab
  25. 25easy

    Countdown

    For · 8 min

    Open lab
  26. 26easy

    Skip multiples of 3

    Break Continue · 10 min

    Open lab
  27. 27medium

    Is prime?

    For · 12 min

    Open lab
  28. 28medium

    GCD

    While · 12 min

    Open lab
  29. 29easy

    Star triangle

    Nested Loops · 10 min

    Open lab
  30. 30easy

    Keep the evens

    Arrays · 10 min

    Open lab
  31. 31easy

    Reverse the list

    Arrays · 8 min

    Open lab
  32. 32easy

    Min and max

    Math · 8 min

    Open lab
  33. 33easy

    Linear search

    Arrays · 10 min

    Open lab
  34. 34medium

    Set intersection

    Sets · 12 min

    Open lab
  35. 35easy

    Object lookup

    Objects · 10 min

    Open lab
  36. 36medium

    Power by recursion

    Functions · 12 min

    Open lab
  37. 37medium

    Collatz steps

    While · 12 min

    Open lab
  38. 38easy

    Days in a month

    Switch · 10 min

    Open lab
  39. 39easy

    Title case

    Strings · 10 min

    Open lab
  40. 40medium

    Sort by length

    Arrow Functions · 12 min

    Open lab
  41. 41easy

    Safe divide

    Errors · 10 min

    Open lab
  42. 42easy

    Absolute difference

    Math · 8 min

    Open lab
  43. 43easy

    Median of three

    Arrays · 10 min

    Open lab
  44. 44medium

    Power of two?

    Operators · 10 min

    Open lab
  45. 45easy

    Day name

    Switch · 10 min

    Open lab
  46. 46easy

    Count digits

    Strings · 8 min

    Open lab
  47. 47medium

    Zip sums

    Array Methods · 12 min

    Open lab
  48. 48medium

    Bubble sort

    Arrays · 15 min

    Open lab
  49. 49medium

    Matching brackets

    Arrays · 15 min

    Open lab
  50. 50medium

    Rectangle class

    Classes · 12 min

    Open lab

FAQ: JavaScript Bootcamp Labs

Common questions about this page.

What is the StudyGrid JavaScript tutorial?

The StudyGrid JavaScript tutorial is a full beginner track: variables, functions, arrays, if/else, the DOM, events, storage, and fetch. Each chapter has copy-and-run examples.

Should I run javascript bootcamp labs examples locally for better learning?

Yes. Use the browser editor on StudyGrid for a quick check, then Download the example and run it on your computer. Local runs show real errors and the real toolchain, which is one of the fastest ways to learn javascript bootcamp labs in this JavaScript Labs JavaScript lesson (JavaScript Bootcamp Labs).

Is the JavaScript editor the same as Try Python?

No. Try JavaScript is a live page plus a console at /javascript/try. Try Python stays at /try. JavaScript lessons never open the Python editor.

Do I need to install anything to learn JavaScript?

No. Open a chapter, click Try it in JavaScript, and the page and console update in the browser.

Where should I start the JavaScript tutorial?

Start at JavaScript Intro, then Where To, Output, and Syntax. After variables and functions, continue to the DOM and events. Use Next at the bottom of each chapter.

Is the JavaScript tutorial free?

Yes. The JavaScript studio on StudyGrid (studygrid.in) is free: dashboard, chapters, and the live editor.