Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if(confirmQuiz === 'Y' || confirmQuiz === 'YES'){
} else {
console.log('Your taking it anyway. Email StopCryingandTaketheQuiz@aol.com with complaints. Thx');
}
function catQuestion(){
function QuestionOne(){
// Question One
var quizResponseOne = prompt('Does Kevin have a cat?').toUpperCase();

Expand All @@ -20,9 +20,9 @@ function catQuestion(){
console.log('Please answer using Y or N or Yes/No. PAY ATTENTION');
}
}
catQuestion();
QuestionOne();

function spainQuestion(){
function QuestionTwo(){
//Question Two
var quizResponseTwo = prompt('Has Kevin been to Spain?').toUpperCase();

Expand All @@ -34,9 +34,9 @@ function spainQuestion(){
console.log('Please answer using Y/N or Yes/No. Didn\'t we go over this?');
}
}
spainQuestion();
QuestionTwo();

function mphQuestion(){
function QuestionThree(){
// Question Three
var quizResponseThree = prompt('Has Kevin ever gone 180mph?').toUpperCase();

Expand All @@ -47,7 +47,7 @@ function mphQuestion(){
console.log('Please answer using Y/N or Yes/No. I feel like I\'m repeating myself.');
}
}
mphQuestion();
QuestionThree();

function beerQuestion(){
// Question Four
Expand All @@ -61,7 +61,7 @@ function beerQuestion(){
console.log('Please answer using Y/N or Yes/No. Not trying to insult your intelligence but....');
}
}
beerQuestion();
QuestionFour();

function kickQuestion(){
// Question Five
Expand All @@ -75,7 +75,7 @@ function kickQuestion(){
console.log('Please answer using Y/N or Yes/No. Just do it. It will make everyone\'s life easier.');
}
}
kickQuestion();
QuestionFour();

function numGame(){
// Question Six Random Number
Expand All @@ -96,7 +96,7 @@ function numGame(){
}
numGame();

function statesQuestion(){
function QuestionFive(){
//Question Seven States Question
var statesVisited = ['WASHINGTON', 'OREGON'];
//number of guesses
Expand All @@ -113,7 +113,7 @@ function statesQuestion(){
alert('Your all out of guesses. The correct answers are ' + statesVisited);
}
}
statesQuestion();
QuestionFive();
// var correctState = ['WASHINGTON, OREGON, IDAHO, MONTANA, NEW YORK, NEW JERSEY, TEXAS, NEVADA, MONTANA, CALIFORNIA, PENNSYLVANIA, NORTH CAROLINA'];
//
// // console.log(correctState);
Expand Down