TypeScript bootcamp

Question on the left. Your TypeScript 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. tsc grades stdout against hidden tests.

50 labs · 29 easy · 21 medium · progress stays in this browser.

  1. Read the questionInput, output, and a short example. Same shape as a classroom worksheet.
  2. Write TypeScript, 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, TypeScript

    Output · 5 min

    Open lab
  2. 02easy

    Sum two numbers

    Types · 8 min

    Open lab
  3. 03easy

    Even or odd

    If Else · 8 min

    Open lab
  4. 04easy

    Largest of three

    If Else · 10 min

    Open lab
  5. 05easy

    Times table

    For · 10 min

    Open lab
  6. 06medium

    Maximum in an array

    Arrays · 12 min

    Open lab
  7. 07medium

    Reverse a word

    Strings · 10 min

    Open lab
  8. 08medium

    Typed factorial

    Functions · 12 min

    Open lab
  9. 09easy

    Leap year

    If Else · 10 min

    Open lab
  10. 10easy

    Sum of digits

    While · 10 min

    Open lab
  11. 11easy

    Countdown

    For · 8 min

    Open lab
  12. 12easy

    Skip multiples of 3

    Break Continue · 10 min

    Open lab
  13. 13medium

    Is prime?

    For · 12 min

    Open lab
  14. 14medium

    GCD

    While · 12 min

    Open lab
  15. 15easy

    Star triangle

    Nested Loops · 10 min

    Open lab
  16. 16easy

    Keep the evens

    Arrays · 10 min

    Open lab
  17. 17easy

    Reverse the list

    Arrays · 8 min

    Open lab
  18. 18easy

    Min and max

    Math · 8 min

    Open lab
  19. 19easy

    Linear search

    Arrays · 10 min

    Open lab
  20. 20medium

    Set intersection

    Sets · 12 min

    Open lab
  21. 21easy

    Object lookup

    Objects · 10 min

    Open lab
  22. 22medium

    Power by recursion

    Functions · 12 min

    Open lab
  23. 23medium

    Collatz steps

    While · 12 min

    Open lab
  24. 24easy

    Days in a month

    Switch · 10 min

    Open lab
  25. 25easy

    Title case

    Strings · 10 min

    Open lab
  26. 26medium

    Sort by length

    Arrow Functions · 12 min

    Open lab
  27. 27easy

    Safe divide

    Errors · 10 min

    Open lab
  28. 28easy

    Absolute difference

    Math · 8 min

    Open lab
  29. 29easy

    Median of three

    Arrays · 10 min

    Open lab
  30. 30medium

    Power of two?

    Operators · 10 min

    Open lab
  31. 31easy

    Day name

    Switch · 10 min

    Open lab
  32. 32easy

    Count digits

    Strings · 8 min

    Open lab
  33. 33medium

    Zip sums

    Array Methods · 12 min

    Open lab
  34. 34medium

    Bubble sort

    Arrays · 15 min

    Open lab
  35. 35medium

    Matching brackets

    Arrays · 15 min

    Open lab
  36. 36medium

    Rectangle class

    Classes · 12 min

    Open lab
  37. 37easy

    Celsius to Fahrenheit

    Numbers · 8 min

    Open lab
  38. 38easy

    Letter grade

    If Else · 10 min

    Open lab
  39. 39easy

    Squares 1 to n

    For · 8 min

    Open lab
  40. 40easy

    Sum 1 to n

    For · 8 min

    Open lab
  41. 41medium

    FizzBuzz

    For · 12 min

    Open lab
  42. 42medium

    Fibonacci n

    While · 12 min

    Open lab
  43. 43easy

    Count words

    Strings · 10 min

    Open lab
  44. 44easy

    Count vowels

    Strings · 10 min

    Open lab
  45. 45medium

    Palindrome

    Strings · 10 min

    Open lab
  46. 46medium

    Anagram check

    Strings · 12 min

    Open lab
  47. 47easy

    Average

    Arrays · 10 min

    Open lab
  48. 48medium

    Second largest

    Arrays · 12 min

    Open lab
  49. 49medium

    Unique sorted

    Sets · 10 min

    Open lab
  50. 50medium

    Word frequency

    Map · 12 min

    Open lab

FAQ: TypeScript Bootcamp Labs

Common questions about this page.

What is the StudyGrid TypeScript tutorial?

The StudyGrid TypeScript tutorial follows the same chapter rhythm as C++: syntax, types, input, loops, functions, classes, generics, maps, and lambdas. Each chapter has copy-and-run examples.

Should I run typescript 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 typescript bootcamp labs in this TypeScript Labs TypeScript lesson (TypeScript Bootcamp Labs).

Is the TypeScript editor the same as Try Python or Try C++?

No. Try TypeScript type-checks with tsc at /typescript/try and shows stdout plus compiler messages. Try Python stays at /try. Try C++ stays at /cpp/try. TypeScript lessons never open those editors.

Do I need to install a compiler to learn TypeScript?

No. Open a chapter, click Try it in TypeScript, and compile in the browser. You can also download a .ts file and compile locally with tsc.

Where should I start the TypeScript tutorial?

Start at TypeScript Intro, then Get Started and Syntax. After the first program, continue to output, variables, and if-else. After classes, open TypeScript Examples, then generics, Map, and arrow functions. Use Next at the bottom of each chapter.

Is the TypeScript tutorial free?

Yes. The TypeScript workshop on StudyGrid (studygrid.in) is free: dashboard, chapters, and the compile-and-run editor.