Https://www.codecademy.com/paths/web-development/tracks/getting-started-with-javascript/modules/code-challenge-javascript-fundamentals/lessons/javascript-fundamentals-code-challenge/exercises/how-old

Hello again can you break down for me what is wrong here. Javascript is turning out to be a bit of a challenge for me. thanks for any help!

Screen Shot 2020-08-11 at 12.52.39 PM|690x431

https://www.codecademy.com/paths/web-development/tracks/getting-started-with-javascript/modules/code-challenge-javascript-fundamentals/lessons/javascript-fundamentals-code-challenge/exercises/how-old

Why do you have a } in front of your if statement? I’m assuming it’s supposed to be in your function?
If you take that away the error should stop. (I think I’m not as familiar with JS anymore)

1 Like

thanks for the input i did that and it didnt work. im gonna get the solution and compare.

hey! i got it! haha so happy, ive been struggling with this this section so this is a big win for me! thanks again!

1 Like