What bootcamps test today, 10 JavaScript practice problems with tested solutions, and a two-week plan to be ready for day one.

By Michael Stromberg, Hack Reactor graduate (2016) · Last verified November 29, 2026
Most coding bootcamps no longer test you before you’re admitted. That sounds like good news, but the test still comes: a few weeks in, when the pace picks up and a checkpoint decides whether you continue. This guide explains what bootcamps check today, gives you 10 JavaScript practice problems at the level you need on day one, with tested solutions, and lays out a two-week plan to get there.
The short answer: before you pay tuition, you should be able to solve problems like the 10 below in plain JavaScript, without looking anything up, in about 15 minutes each. If most of them are out of reach, spend a few weeks on a free curriculum such as freeCodeCamp or The Odin Project first. It’s the cheapest way to protect a five-figure tuition payment.
Do coding bootcamps still have an admissions test?
Mostly, no. The selective admissions coding challenges that bootcamps were known for have largely disappeared. Here’s what four well-known bootcamps ask for today, based on our reviews:
| Bootcamp | Admissions today | Coding test to get in? | Where you’re tested later |
|---|---|---|---|
| Hack Reactor | Online application and a 15-minute CCAT aptitude test | No. The old live Technical Admissions Assessment is gone | The Full-Stack Fluency checkpoint: pass it or you don’t continue |
| App Academy | Application, admissions call, aptitude assessment | No coding required | Projects and assessments during the program |
| Fullstack Academy | Application and a call with a student advisor | No | A cumulative 70% to pass; missed assessments risk failing or dismissal |
| Springboard | Application, admissions call, and a technical skills survey (under 45 minutes for most people) | A short skills survey | Mentor reviews and projects |
Open admissions means the bootcamp no longer filters for readiness, so you have to. Classes start at full speed, and Hack Reactor’s pre-course Course Primers, for example, review math and computer literacy, not coding. The students who struggle most are the ones who arrive without the basics below.
What you should be able to do on day one
- Variables and types: numbers, strings, booleans, arrays, objects, and the difference between
var,let, andconst. - Loops and conditionals:
for,for...of,while,if/else. - Functions: parameters, return values, and functions passed to other functions (callbacks).
- Arrays and objects: reading, adding, and looping over both, and building an object as a lookup table.
- Higher-order functions:
map,filter, andreduce(our reduce tutorial covers the hardest one). - Closures and recursion: at least the basics. These are where most beginners get stuck; our recursion tutorial is a good start.
- Tools: running JavaScript in your browser’s console or in Node.js, and basic Git and GitHub.

10 JavaScript practice problems
These go from warm-up to the kind of question that separates prepared students from unprepared ones. For each one, write a function in a plain .js file or your browser console, test it with the example, and time yourself. Aim for 15 minutes each without looking anything up. All solutions below were tested with Node.js.
1. Sum an array
Write sum(numbers) that returns the total of an array of numbers. An empty array should return 0.
sum([1, 2, 3, 4]); // 10 sum([]); // 0
Hint: Start a running total at 0 and add each number with a loop.
Solution. Try it yourself first, with a timer running. Then compare:
function sum(numbers) {
let total = 0;
for (const n of numbers) {
total += n;
}
return total;
}2. Count the vowels
Write countVowels(text) that returns how many vowels (a, e, i, o, u) a string contains, ignoring case.
countVowels('Hello World'); // 3
countVowels('rhythm'); // 0Hint: Lowercase the string first, then check each character against 'aeiou'.
Solution. Try it yourself first, with a timer running. Then compare:
function countVowels(text) {
let count = 0;
for (const ch of text.toLowerCase()) {
if ('aeiou'.includes(ch)) count++;
}
return count;
}3. Find the largest number
Write largest(numbers) that returns the biggest number in an array, without using Math.max.
largest([3, 9, 2, 7]); // 9 largest([-5, -2, -9]); // -2
Hint: Don’t start your “max so far” at 0, or the all-negative example breaks. Start with the first element.
Solution. Try it yourself first, with a timer running. Then compare:
function largest(numbers) {
let max = numbers[0];
for (let i = 1; i < numbers.length; i++) {
if (numbers[i] > max) max = numbers[i];
}
return max;
}The negative test case is the point of this problem. Bootcamp checkpoints love edge cases: empty inputs, negatives, and single items.
4. Reverse the words in a sentence
Write reverseWords(sentence) that reverses the order of the words, not the letters.
reverseWords('I love writing code'); // 'code writing love I'Hint: Split the string into an array of words, reverse the array, and join it back together.
Solution. Try it yourself first, with a timer running. Then compare:
function reverseWords(sentence) {
return sentence.split(' ').reverse().join(' ');
}5. Count how often each word appears
Write wordCounts(text) that returns an object mapping each lowercase word to the number of times it appears.
wordCounts('the cat and the hat');
// { the: 2, cat: 1, and: 1, hat: 1 }Hint: Use an object as a lookup table: if the word is already a key, add one; otherwise set it to 1.
Solution. Try it yourself first, with a timer running. Then compare:
function wordCounts(text) {
const counts = {};
for (const word of text.toLowerCase().split(' ')) {
counts[word] = (counts[word] || 0) + 1;
}
return counts;
}This “count with an object” pattern shows up everywhere, from interview problems like Two Sum to hash tables.
6. Names of adults, with filter and map
Given an array of people objects, write adultNames(people) that returns the names of everyone 18 or older.
adultNames([
{ name: 'Ana', age: 17 },
{ name: 'Ben', age: 18 },
{ name: 'Cy', age: 42 },
]); // ['Ben', 'Cy']Hint: Chain two array methods: one to keep the right people, one to turn each person into a name.
Solution. Try it yourself first, with a timer running. Then compare:
function adultNames(people) {
return people
.filter((person) => person.age >= 18)
.map((person) => person.name);
}7. Write your own map
Write myMap(array, callback) that works like the built-in map: it calls the callback with each element and its index, and returns a new array of the results.
myMap([1, 2, 3], (n) => n * 2); // [2, 4, 6] myMap(['a', 'b'], (s, i) => s + i); // ['a0', 'b1']
Hint: Loop with an index, call callback(array[i], i), and push the result.
Solution. Try it yourself first, with a timer running. Then compare:
function myMap(array, callback) {
const result = [];
for (let i = 0; i < array.length; i++) {
result.push(callback(array[i], i));
}
return result;
}Rebuilding built-ins like map, filter, and reduce is a classic bootcamp exercise, because it proves you understand callbacks rather than just using them.
8. A counter with a closure
Write makeCounter() that returns a function. Each call to that function returns the next number, starting at 1, and separate counters don’t share a count.
const counter = makeCounter(); counter(); // 1 counter(); // 2 counter(); // 3 const other = makeCounter(); other(); // 1
Hint: Declare the count inside makeCounter, then return a function that updates it.
Solution. Try it yourself first, with a timer running. Then compare:
function makeCounter() {
let count = 0;
return function () {
count += 1;
return count;
};
}The inner function “closes over” the count variable, which keeps living after makeCounter returns. Closures power techniques like memoization.
9. Flatten a nested array
Write flatten(array) that turns an array nested to any depth into a single flat array.
flatten([1, [2, [3, [4]], 5]]); // [1, 2, 3, 4, 5] flatten([]); // []
Hint: For each item: if it’s an array, flatten it (call your own function) and add the results; otherwise add the item.
Solution. Try it yourself first, with a timer running. Then compare:
function flatten(array) {
let result = [];
for (const item of array) {
if (Array.isArray(item)) {
result = result.concat(flatten(item));
} else {
result.push(item);
}
}
return result;
}This is recursion: a function that calls itself on a smaller piece of the problem. If it doesn’t click yet, work through our recursion tutorial and come back.
10. Group by a key, with reduce
Write groupBy(items, key) that groups an array of objects by the value of one property, using reduce.
groupBy([
{ name: 'Rex', type: 'dog' },
{ name: 'Tom', type: 'cat' },
{ name: 'Fido', type: 'dog' },
], 'type');
// { dog: [Rex, Fido], cat: [Tom] }Hint: Start reduce with an empty object. For each item, create the group’s array if it doesn’t exist, push the item, and return the object.
Solution. Try it yourself first, with a timer running. Then compare:
function groupBy(items, key) {
return items.reduce((groups, item) => {
const value = item[key];
if (!groups[value]) groups[value] = [];
groups[value].push(item);
return groups;
}, {});
}How did you do?
| You solved… | What it means | What to do next |
|---|---|---|
| 8–10 in about 15 minutes each | You’re ready for the pace of a beginner bootcamp | Compare programs in our bootcamp guide, and keep practicing daily until you start |
| 5–7, or all 10 with lots of looking things up | You have the basics but not the speed | Two more weeks of the plan below, then retry the problems you missed |
| Fewer than 5 | Starting now would mean learning basics at bootcamp speed, which is where people fall behind | Spend a month on freeCodeCamp or The Odin Project before paying tuition |
A two-week prep plan
Plan on one to two hours a day. The goal is fluency: solving small problems quickly without help.
| Days | Focus | Practice |
|---|---|---|
| 1–3 | Variables, conditionals, loops | Problems 1–4, then 10 similar warm-ups of your own |
| 4–6 | Arrays and objects as lookup tables | Problems 5–6; count letters, find duplicates, invert an object |
| 7–9 | Callbacks and higher-order functions | Problem 7; rebuild filter and reduce too |
| 10–11 | Closures and scope | Problem 8; a function that only runs once; a counter with reset |
| 12–13 | Recursion | Problem 9; factorial, sum of digits, count nested values |
| 14 | Timed review | Redo all 10 problems from a blank file, 15 minutes each |
If you want structure and feedback instead of a self-made plan, the Treehouse Full Stack JavaScript Techdegree adds code reviews on every project, and our guide to the cheapest ways to learn to code compares the free and low-cost options.
Before you enroll
- Ask what happens if you fail a checkpoint: whether you can repeat, and how much tuition you get back.
- Ask for real outcomes data: how many students who started a cohort finished, and how many of those got a job.
- Know how you’ll pay before you apply. Our guide on how to pay for a coding bootcamp covers upfront discounts, loans, and income share agreements.
- Compare more than one program. Admissions, pace, and pass requirements differ a lot; see our coding bootcamp reviews.
From Michael, Hack Reactor ’16: A bootcamp is expensive tuition paid for speed. If you show up still learning what a loop is, you’re paying full price for a slower, more stressful version of a free course. The best money you can save is the money you don’t spend on a bootcamp you weren’t ready for. If these 10 problems feel comfortable, the pace will too.
Coding Bootcamp Prep FAQ
Do coding bootcamps have an admissions test?
Most well-known bootcamps no longer require a coding test to get in. Hack Reactor uses a short aptitude test (the CCAT), App Academy an aptitude assessment, Fullstack Academy has no test, and Springboard a short skills survey. You’re tested later, at checkpoints during the program.
How much coding should I know before a bootcamp?
Enough to solve small problems with loops, arrays, objects, and functions without looking things up, plus the basics of callbacks, closures, and recursion. The 10 practice problems in this guide are a good benchmark.
How long does it take to prepare for a coding bootcamp?
If you’ve already written some code, two weeks of daily practice is usually enough. If you’re starting from zero, plan on one to three months of a free curriculum such as freeCodeCamp or The Odin Project first.
Which language should I learn before a bootcamp?
JavaScript, unless your bootcamp teaches something else first. Most web development bootcamps use it, and the problems here are written in it. Check your program’s syllabus: some newer beginner programs start with Python.
What happens if I fall behind at a bootcamp?
It depends on the program. Many have checkpoints you must pass to continue, and some dismiss students who miss assessments. Ask admissions about repeat options and refunds before you enroll.
Are free resources enough to prepare?
Yes. freeCodeCamp, The Odin Project, and Harvard’s CS50x cover everything you need for day one. What they don’t give you is a deadline, so set your own schedule and stick to it.
Michael has a diverse background in software engineering, mechanical engineering, economics, and management. After a successful career in mechanical engineering, Michael decided to become a software engineer and attended the Hack Reactor coding bootcamp. Michael enjoys writing about his experiences and helping others start their journeys in software development.
