SyntaxError: Expected ';'


#1

Hi I can't get this code to work it keeps coming up with: SyntaxError: Expected ';'

confirm ("I am ready to play!");

var age prompt("What's your age");

if (age < 13) {
console.log ("Be carful")
} else {
console.log ("carry on")
}


#2

Hey @callum10m! Just a simple mistake your missing something here:

Got it? If not its an equal sign so it should be more like this:

var age = prompt("What's your age")

#3

Thanks for that mate was really stuck lol