Help


#1



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


idk


// Check if the user is ready to play!
function myFunction() {
confirm("I am ready to play!");
}

function myFunction () {
var age = prompt ("What's your age");

if(age is less than 13)
{
    console.log("You can play, but I take no responsibility!");
}
else {
 console.log("YAS!");
}

}


#2

To check if age is lessless than something use the less than operator

(age < 13)

#3

@textsolver60593,
Do not use the function statement....
They want you to
use a confirm() statement
a prompt() statement ( which Always returns a string )
and an IF ELSE statement structure....
You must also use the EXACT text's as are mentioned in the Instructions....

Then =click= the Submit button....

https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm
https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else