JavaScript Challenges
A curated set of JavaScript challenges covering variables, functions, control flow, and async patterns. Perfect for solidifying the fundamentals from our beginner JavaScript guide.
Start solvingTwo Sum
Given an array of integers and a target, return indices of two numbers that add up to target.
Reverse String
Write a function that reverses a string.
FizzBuzz
Print numbers 1 to n. For multiples of 3 print 'Fizz', 5 print 'Buzz', both print 'FizzBuzz'.
Palindrome Check
Check if a string is a palindrome (case-insensitive, ignore non-alphanumeric).
Max Profit
Given a prices array, find the max profit from one buy and one sell.
Valid Parentheses
Check if a string of brackets is valid (opened and closed in correct order).
Count Vowels
Count the number of vowels in a string.
Capitalize Words
Capitalize the first letter of each word in a string.
Debounce
Implement a debounce function that delays invocation.
Promise Basics
Create a promise that resolves with a value after a delay and handles rejection.