Lesson 3. "inventemos un cuento"


Hi!, here is a cap.

Aparently i did it well. Someone can help?


Solved. It was missing the 'dot' at the end of the
paragraph :confounded:


Aqui te envio la respuesta, son las comilla simple, no se debe usar comillas dobles.


can someone help me what wrong with my code
"are you ready to play!"
confirm("I understand confirm!");
var age = prompt("What's your age");
if("age is less than 13");
{console.log("your allow to play but i take no resposibilty if your under the age of 13");
{ console.log("play");
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");


Your if condition has a text string in it instead of a comparison of the age variable. This text string will only evaluate to true and execute the if statement. The else statement would never execute.

Remember on the previous line, you have a prompt. The user would enter a number and that's the value assigned to age. So in your if condition, you should check if age is less than 13. There is a way to write this in javascript using a comparison operator.


thanks but i had sove it earlier