My code already works, but my question is how can I properly put <, >, <=, >=, etc in a case statement?
Here's my code:
var user = prompt("How many miles are you running?").toLowerCase();
console.log("You're a marathon man!");
** case '<= 9.9':**
** console.log("I need to run and keep up with you.");**
Now what I want to do is use any number less than 9.9 in order to get "I need to run and keep up with you." answer. Instead, when I type any number less than 9.9 it goes to the default answer, "Off day?". Is there a way to properly put these symbols (<, >, <= >=, etc) in the case statement, so that the "I need to run and keep up with you." answer is logged in the console? Do I need quotation marks to do it?
If I have confused you, please let me know. Otherwise, any help and advice will greatly appreciated. Thanks.