<!DOCTYPE html>
<html>
	<head>
		<title>0's Good?</title>
	</head>
	<body>
		<h1> I have this interaction every single day with a co-worker.</h1>
		<h5> This is a cry for help.</h5>
		
	</body>
</html>
body {
  font-size: 20px;
	background: black;
	color: chartreuse;
	margin: 5%;
}   
// program that simulates the same insane conversation I have with a co-worker everyday.


var yn = prompt("Is 0 good?");

while (yn !== "yes" && yn !== "Yes" && yn !=="y") {
	yn = prompt("0's good?");
}

var confirm = prompt("Is 0 a good number?");

while (confirm !== "yes" && confirm !== "Yes" && confirm !=="y") {
	confirm = prompt("Let's try that again. Is 0 a good number?");
}

var yn = prompt("1 is good?");
while (yn !== "yes" && yn !== "Yes" && yn !=="y") {
	yn = prompt("0ne's good?");
}

confirm  = prompt("Is 1 a good number?");
while (confirm !== "yes" && confirm !== "Yes" && confirm !=="y") {
	confirm = prompt("1's a good number?");
}

var yna = prompt("2's good?");
while (yna !== "yes" && yna !== "Yes" && yna !== "y") {
	yna = prompt("Is 2 good?");
}

alert("2's good for now.")
var bye = prompt("Thanks for coming today. You know I'm joking, right?");

while (bye !== "yes" && bye !== "Yes" && bye !=="y") {
	bye = prompt("You know I'm joking right?");
}

alert("Thanks for coming today. Come back again tomorrow.");
	

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.