The browser storage localStorage is not available. Either your browser does not support it or you have disabled it or the maximum memory size is exceeded. Without localStorage your solutions will not be stored.

Overview

Here you find all exercises. Unsolved exercises are red, solved green. With click or touch you navigate to the exercise. Reset JS Hero with the button below. All exercises will be red and you can start JS Hero again.

1. Variables 2. What is x? 3. Several variables 4. Reassignment 5. Assign variables 6. Functions 7. Multiple functions 8. Function calls 9. What is x? 10. Parameters 11. What is x? 12. Strings 13. What is x? 14. What is x? 15. Logging 16. Logging variables 17. Logging and Strings 18. Silent Teacher 19. Playground 20. String: length 21. String: toUpperCase() 22. String: charAt() 23. String: trim() 24. String: indexOf() 25. String: indexOf() with from index 26. String: substr() 27. String: replace() 28. Numbers 29. Increment 30. Fahrenheit 31. Modulo 32. Parentheses 33. Math 34. min and max 35. Math.PI 36. Rounding 37. Random numbers 38. parseInt() 39. Boolean 40. NOR 41. XOR 42. Strict equality 43. Three identical values 44. Even numbers 45. Strict inequality 46. Compare numbers 47. if 48. Two returns 49. if...else 50. else if 51. Switch 52. Arrays 53. Get array elements 54. Set array elements 55. Array: length 56. Sorting arrays 57. Array: shift() and push() 58. Array: indexOf() 59. Array: concat() 60. Array: slice() 61. Array: join() 62. Array of arrays 63. Comments 64. undefined 65. null 66. for loop 67. Factorial 68. Loops and arrays 69. while loop 70. do...while loop 71. gcd 72. break and continue 73. Nested loops 74. The arguments object 75. NaN 76. String: split() 77. Functions call functions 78. Recursion 79. Roman numerals I 80. Roman numerals II 81. Project Euler 82. To be continued ...

Do you really want to reset JS Hero?

loving