text: 'use strict';
  
  let correctAnswers = 0;
  
  function nameQ(){
  	var userName = prompt('What is your name?');
  	// console.log('Welcome' + greeting);
  	alert('Welcome ' + userName);
  } 
  
  function firstQ() {
  	var first = prompt('Are you ready to know more about Me through playing this game? \n[please answer by typing: (Yes/No) or (Y/N)]');
  	
  	if (first.toLowerCase() === 'yes' || first.toLowerCase() === 'y') {
  		// console.log('Welcome, My Name is Mohammad Nour Rezek');
  		alert('Welcome, My Name is Mohammad Nour Rezek');
  		correctAnswers++;
  	} else {
  		// console.log('I am sorry for you');
  		alert('I am sorry for you');
  	}	
  }
  
  function secondQ() {
  	var second = prompt('Are you think i have a BA degree? \n[please answer by typing: (Yes/No) or (Y/N)]');
  	
  	if (second.toLowerCase() === 'yes' || second.toLowerCase() === 'y') {
  		// console.log('Right, i have a BA of Science in Software Engineering');
  		alert('Right, i have a BA of Science in Software Engineering');
  		correctAnswers++;
  	} else {
  		// console.log('Wrong, i have a BA of Science in Software Engineering');
  		alert('Wrong, i have a BA of Science in Software Engineering');
  	}
  }
  
  function thirdQ(){
  	var third = prompt('Are you think that i have knowledge of programmin? \n[please answer by typing: (Yes/No) or (Y/N)]');
  	
  	if (third.toLowerCase() === 'yes' || third.toLowerCase() === 'y') {
  		// console.log('That\'s right, i know python, js and c#');
  		alert('That\'s right, i know python, js and c#');
  		correctAnswers++;
  	} else {
  		// console.log('Wrong, i know python, js and c#');
  		alert('Wrong, i know python, js and c#');
  	}
  }
  
  function fourthQ(){
  	var forth = prompt('Are you think that i have experience before? \n[please answer by typing: (Yes/No) or (Y/N)]');
  	
  	if (forth.toLowerCase() === 'yes' || forth.toLowerCase() === 'y') {
  		// console.log('Right, i have a total of three years of experience.');
  		alert('Right, i have a total of three years of experience.');
  		correctAnswers++;
  	} else {
  		// console.log('Wrong, i have a total of three years of experience.');
  		alert('Wrong, i have a total of three years of experience.');
  	}
  }
  
  function fifthQ() {
  
  	var fifth = prompt('Are you think that i have repositories on github? \n[please answer by typing: (Yes/No) or (Y/N)]');
  	
  	if (fifth.toLowerCase() === 'yes' || fifth.toLowerCase() === 'y') {
  		// console.log('Right, you can see them here: <a href="https://github.com/Mohammad-Nour-Rezek?tab=repositories">GitHub</a>');
  		alert('Right, you can see them here: \n https://github.com/Mohammad-Nour-Rezek?tab=repositories');
  		correctAnswers++;
  	} else {
  		// console.log('Wrong, you can see them here: <a href="https://github.com/Mohammad-Nour-Rezek?tab=repositories">GitHub</a>');
  		alert('Wrong, you can see them here: \n https://github.com/Mohammad-Nour-Rezek?tab=repositories');
  	}
  }
  
  let j = 0;
  
  function sixthQ(){	
  	for (let i = 0; i < 4; i++) {
  		var guess = prompt('Please guess a number between 0 and 10 \n you have 4 times to try \n now you have ' + (4 - i) + ' left.');
  	
  		if (parseFloat(guess) >= 0 && parseFloat(guess) <= 10) {
  			switch (parseFloat(guess)) {
  				case 1:
  					j++;
  					break;
  				case 3:
  					j++;
  					break;
  				case 5:
  					j++;
  					break;
  				case 8:
  					j++;
  					break;		
  			}
  		} else if (parseFloat(guess) < 0) {
  			// console.log('Too Low!');
  			alert('Too Low!');
  		} else {
  			// console.log('Too High!');
  			alert('Too High!');
  		}
  	}
  	alert('You have ' + j + ' correct answers! \n The correct answers is: 1, 3, 5, 8');
  }
  
  if (j > 0) {
  	correctAnswers++;
  }
  
  let arr = ['great', 'good', 'happy', 'not bad', 'bad'];
  function seventhQ(){
  	
  	for (let i = 6; i > 0; i--) {
  		var rate = prompt('Tell me about your feelings after playing this game? \n [please select from this list:] \n (great, good, happy, not bad, bad) \n you have ' + i + ' times left');	
  		
  		switch (rate.toLowerCase()) {
  			case arr[0]:
  				// console.log('Get your feelings, Thank you');
  				alert('Get your feelings, Thank you');
  				correctAnswers++;
  				i = 0;
  				break;
  			case arr[1]:
  				// console.log('Get your feelings, Thank you');
  				alert('Get your feelings, Thank you');
  				correctAnswers++;
  				i = 0;
  				break;
  			case arr[2]:
  				// console.log('Get your feelings, Thank you');
  				alert('Get your feelings, Thank you');
  				correctAnswers++;
  				i = 0;
  				break;
  			case arr[3]:
  				// console.log('Get your feelings, Thank you');
  				alert('Get your feelings, Thank you');
  				correctAnswers++;
  				i = 0;
  				break;		
  			case arr[4]:
  				// console.log('Get your feelings, Thank you');
  				alert('Get your feelings, Thank you');
  				correctAnswers++;
  				i = 0;
  				break;		
  		}
  	}
  }
  
  // do {
  // 	var rate = prompt('Tell me about your feelings after playing this game? \n [please select from this list:] \n (great, good, happy, not bad, bad) \n you have ' + count + ' times left');	
  
  // } while (count > 0) {
  // 	if (rate.toLowerCase() != arr[0] || rate.toLowerCase() != arr[1] || rate.toLowerCase() != arr[2] || rate.toLowerCase() != arr[3] || rate.toLowerCase() != arr[4]) {
  // 		count--;		
  // 		rate = prompt('Tell me about your feelings after playing this game? \n [please select from this list:] \n (great, good, happy, not bad, bad) \n you have ' + count + ' times left');			
  // 	} else {
  // 		// console.log('Get your feelings, Thank you');
  // 		alert('Get your feelings, Thank you');
  // 		correctAnswers++;
  // 		count = 0;
  // 	}
  // }
  
  nameQ();
  firstQ();
  secondQ();
  thirdQ();
  fourthQ();
  fifthQ();
  sixthQ();
  seventhQ();
  
  // console.log('You have ' + correctAnswers + ' correct answer(s).);
  alert('You have ' + correctAnswers + ' correct answer(s).');
  
  // console.log('Thank you, See you again ' + userName);
  alert('Thank you, See you again ' + userName);