Q part 2, Old enough to play? Kindly someone tell me what is wrong with my code, thankyou


#1

https://www.codecademy.com/courses/javascript-beginner-en-x9DnD/0/2?curriculum_id=506324b3a7dffd00020bf661#


SyntaxError: missing ) after condition

Replace this line with your code. 

// Check if the user is ready to play!
confirm("ready to start?")
var myAge = "age"
var age = prompt("what is your age?");
if(age is less than 13) {
    console.log("play but take responsibility");
}
else
{
    console.log("play on");   
}


#2

if(age is less than 13)// wrong // instead of write if(age < 13)

Less than operator (<)

check it
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Comparison_Operators


#3

Thank you for your timely reply. Does it mean the computer only understands the symbols only. Then I would like to upgrade to Code Pro but I am unsure of the security of my card numbers. Do you have an office in Kenya.


#4

Thanks, it worked. I have appreciated