lesson-cover

Go Back

Foundations of JavaScript

Greater than 5

Write a function that takes in a number and returns true if that number is greater than 5. Otherwise, return false.

Here's how another developer might use your function:

solution(9) // Should return true
solution(4) // Should return false