<commit_before>// 'use strict';
// var answerY = function(answer, sentence) {
//   if (answer.toUpperCase() === 'Y') {
//     alert('You are correct, ' + sentence);
//     console.log(sentence);
//   } else {
//     alert('That is incorrect, ' + sentence);
//     console.log(sentence);
//   }
// };
//
// var answerN = function(answer, sentence) {
//   if (answer.toUpperCase() === 'N') {
//     alert('You are correct, ' + sentence);
//     console.log(sentence);
//   } else {
//     alert('That is incorrect, ' + sentence);
//     console.log(sentence);
//   }
// };
//
// var name = prompt('What is your name?');
// console.log('Welcome ' + name + ' to my little quiz.');
// alert('Hello, ' + name + ' lets play this quiz to see how well you know me!');
// alert('For the first five questions, please answer with a simple Y or N');
//
// var answer1 = prompt('Do I have a cat named Minerva?');
// var q1 = answerY(answer1, 'I have a cat named Minerva.');
//
// var answer2 = prompt('Do I have a Corgi named Sherwood?');
// var q2 = answerN(answer2, 'I do not have a Corgie...YET!!!!');
//
// var answer3 = prompt('Do I have a little brother?');
// var q3 = answerY(answer3, 'Skyler is my little bro.');
//
// var answer4 = prompt('Is this my first class at CodeFellows?');
// var q4 = answerN(answer4, 'I took classes last year!');
//
// var answer5 = prompt('Did I train to be a Dietitian in college?');
// var q5 = answerY(answer5, 'I am a Registered Dietitian.');

alert('A different format for the next question. The rules here change a bit. For this next question, I will present the question and you will have four guesses to get it right. Please enter a numerical value between 1 - 20 Good Luck!');

var qSixCounter = 1;
var max = 4;
var answer6;
while (qSixCounter <= max) {
  answer6 = prompt('How many jobs have I had?');
  if (isNaN(answer6) === false) {
    if (parseInt(answer6) === 4) {
      alert('Correct, I have had four jobs! You got it right on your attempt # ' + qSixCounter + '!' );
      console.log('Yah it only too you ' + qSixCounter + ' tries!');
      qSixCounter = max + 1;
    } else {
      alert('Incorrect, please try again.');
      console.log('That was attempt # ' + qSixCounter + '. You have ' + (max - qSixCounter) + ' tries left.' );<commit_msg>forgot to add the too high or too low part. fixed. completely finished q6 for sure<commit_after>// 'use strict';
// var answerY = function(answer, sentence) {
//   if (answer.toUpperCase() === 'Y') {
//     alert('You are correct, ' + sentence);
//     console.log(sentence);
//   } else {
//     alert('That is incorrect, ' + sentence);
//     console.log(sentence);
//   }
// };
//
// var answerN = function(answer, sentence) {
//   if (answer.toUpperCase() === 'N') {
//     alert('You are correct, ' + sentence);
//     console.log(sentence);
//   } else {
//     alert('That is incorrect, ' + sentence);
//     console.log(sentence);
//   }
// };
//
// var name = prompt('What is your name?');
// console.log('Welcome ' + name + ' to my little quiz.');
// alert('Hello, ' + name + ' lets play this quiz to see how well you know me!');
// alert('For the first five questions, please answer with a simple Y or N');
//
// var answer1 = prompt('Do I have a cat named Minerva?');
// var q1 = answerY(answer1, 'I have a cat named Minerva.');
//
// var answer2 = prompt('Do I have a Corgi named Sherwood?');
// var q2 = answerN(answer2, 'I do not have a Corgie...YET!!!!');
//
// var answer3 = prompt('Do I have a little brother?');
// var q3 = answerY(answer3, 'Skyler is my little bro.');
//
// var answer4 = prompt('Is this my first class at CodeFellows?');
// var q4 = answerN(answer4, 'I took classes last year!');
//
// var answer5 = prompt('Did I train to be a Dietitian in college?');
// var q5 = answerY(answer5, 'I am a Registered Dietitian.');

alert('A different format for the next question. The rules here change a bit. For this next question, I will present the question and you will have four guesses to get it right. Please enter a numerical value between 1 - 20 Good Luck!');

var qSixCounter = 1;
var max = 4;
var answer6;
var numJobs = 4;
while (qSixCounter <= max) {
  answer6 = prompt('How many jobs have I had?');
  if (isNaN(answer6) === false) {
    if (parseInt(answer6) === numJobs) {
      alert('Correct, I have had four jobs! You got it right on your attempt # ' + qSixCounter + '!' );
      console.log('Yah it only too you ' + qSixCounter + ' tries!');
      qSixCounter = max + 1;
    } else {
      if (parseInt(answer6) >= numJobs){
        alert('Incorrect. That was too high.');
      } else if (parseInt(answer6) <= numJobs) {
        alert('Incorrect. Too low.');
      }
      console.log('That was attempt # ' + qSixCounter + '. You have ' + (max - qSixCounter) + ' tries left.' );
{'fraction_non_alphanumeric': 0.1669785818257434, 'fraction_numerical': 0.011436889166146809, 'mean_word_length': 2.926530612244898, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2377739', 'n_tokens_mistral': 1551, 'n_tokens_neox': 1515, 'n_words': 569}