Essential JavaScript
Introduction
JavaScript Basics
Numbers
Strings
Logic
Variables
Loops
Objects
Arrays
Going Further
Essential JavaScript
Introduction
JavaScript Basics
Numbers
Strings
Logic
Variables
Loops
Objects
Arrays
Going Further
You Must Be This Tall Kata
You are working on a new robot to help out at amusement parks. Your robot will be stationed at a place where people line up to get on a roller coaster.
In order to ride a roller coaster, people need to meet the height requirement for that coaster. We don't want anyone falling out of the seats!
Your robot will be given the height requirement for the ride in inches (coasterHeightRequirement
) and the height of the next person in line (riderHeight
), also in inches.
Height requirements will always be integers. Rider height may be a floating point number or integer.
Write a function that returns true
if the person meets the ride's height requirement and false
otherwise. If the person's height exactly meets the requirement, return true
.
Code Editor
Click "Run Tests" to execute your function and see the test results below.
Test Results
Run your code to see test results
Console Output
0 output lines