var finish = prompt("Did you finish the course?")
var finish = finish.toLowerCase()
var yes = "yes"
var no = "no"
var victory = "I finished my first course!"
var defeat = "Go finish the course."
var wrong = "Yes or No are the only acceptable answers."
if (finish === yes)
else if (finish === no)
else if (finish !== no || finish !== yes)
I know it's kind of really simple code but I'd like to know what I'm doing wrong to avoid this error in the future or what would allow the script to run as a .js. The same code did work when I changed out the console.log's for document.write in html. It also worked as is in the browser course test area