Simple Program


#1

Hi everyone,

Below you will find a simple program I’m trying to create. I’m not entirely sure what’s wrong. Any help would be appreciated.

var height = 60;
var heightRestriction = 55;
if (height > heightRestriction) {
return ‘You are tall enough to ride’;
} else {
return ‘You are not tall enough to ride’;
}

console.log(height());


#2

The word “wrong” might be the problem.
Replace that with descriptions of what you want to happen and what is currently happening. Consider the difference. That difference is the change you need to make.