"Syntax error: Unexpected token )" What is wrong?


#1

//LoL team resume
confirm("This is a resume designed for entering Pro LoL teams. I'll be asking you a series of question and at the end there will be a printed resume completed with all the information the team will need.")
var name = prompt("Write your full name with your IGN. Example: Axel 'The Mexigore' Castrejon ")
var age = prompt("What's your age? Example: do you really need an example for this?")
if (age === "yes" ) {
age = prompt("Fine. Exmaple: 18. Now answer the question")
} else if (age > 100 || age < 0) {
var same;
} else {
for (var i = 0; i === 0) {
if (age > 100 || age < 0) {
age = prompt("Answer the question already. What's your age?")
} else {
i=1
}
}
}
var age16warning

if (age <= 16) {
age16warning = " (WARNING: Most teams will requiere you to be over the age of 16.)"
} else {
age16warning = " "
}

console.log(name)
console.log(age, age16warning)


#2

you forgot the Semicolons

I'm not sure what this is supposed to do but it is probably stopping your program


#3

You forgot the 3rd statement in your for loop, include either i++ or i--


#4

look at else inside the if statement inside of the for loop


#5

var same; is temporary


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.