Prompt JavaScript If Else Unexpected Token else
问题 I'm teaching myself JavaScript using Code Academy and I'm trying to make some simple code so that when prompt asks a question, the user reply gives a response. example. prompt says "what's your favourite colour?" user says "blue" response "that's the same colour as the sky!" But when I try to add different options, I get Syntax error: unexpected token else. I tried making it so that if I asked a question, the reply gets a response but anything else gets a response. Here's the code. prompt(