Skip to main content
🌱 Coding Level 1: First Steps 🌱

Is It Big? πŸ”

So far our functions worked with the same numbers every time. Now we'll let the function take a number in. The n inside the parentheses is the number we hand it β€” it could be anything!

function isTiny(n) {
  return n < 5;   // true when n is smaller than 5
}
isTiny(2);  // true
isTiny(9);  // false

The comparison n < 5 already gives back true or false, so we just return it.

Your task

Write isBig(n) that hands back true when n is bigger than 100, and false otherwise.

⚑ 20 XP

🧱 Code blocks

Drag a block into the editor, or tap it to drop it in where your cursor is. Add them in order to build your answer.

solution.jsRuns in your browser
Loading editor…
Tests3 to pass
isBig(200) is true
isBig(5) is false
isBig(100) is false

Run your code to check these.