Brother’s New Dog

Name TBD Edit: Hayley

John Butter

alert("Hello, welcome.") alert("I have a few questions you'll have to answer.") alert("If you don't mind that is.") var t = prompt("What does T stand for?"); var b = prompt("What does B stand for?"); while(t !== "Ted" || b !== "Big") { alert("Sorry, one or both of those aren't correct."); alert("Please try again."); var t = prompt("What does T stand for?"); var b = prompt("What does B stand for?"); }; prompt("Well done, you've escaped the While Loop."); prompt("See you later.");

GlacialTruffle

}; should just be } no ; Missing ; on some statements (but JS doesn't really care about ; ) You're declaring t and b twice. Just remove the word var from t and b in the loop The prompts at the end should be alerts Consider to toUpperCase() if you don't want answers to be case-sensitive The prompts are repeated twice in the code. Consider a while(true) loop, and break when the condition is met. It's a girl dog, so Ted is no good.

GlacialTruffle

alert("Hello, welcome."); alert("I have a few questions you'll have to answer."); alert("If you don't mind that is."); while(true) { var t = prompt("What does T stand for?"); var b = prompt("What does B stand for?"); if (t.toUpperCase() == "TED" && b.toUpperCase() == "BIG") { break; } else { alert("Sorry, one or both of those aren't correct."); alert("Please try again."); } } alert("Well done, you've escaped the While Loop."); alert("See you later.");

GlacialTruffle

Changed CSS on Image Splash so margins work

Charles Daddy (Business Consultant)

Man, those were some sloppy little errors, probably should have written it somewhere other than the image splash text field. But image splash is my primary word processor and code editor now. Good thing you added those margins. I'm interested in this toUpperCase() function, I'm going to google that sh#t when I'm done writing this. Anyway Ted can be a girls name you pogless madman.