{"size": 797, "ext": "js", "max_stars_repo_path": "js/funGame.js", "max_stars_repo_name": "EngMohammadAmer/About-Me", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/funGame.js", "max_issues_repo_name": "EngMohammadAmer/About-Me", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/funGame.js", "max_forks_repo_name": "EngMohammadAmer/About-Me", "max_forks_repo_forks_event_min_datetime": "2021-02-10T12:47:48.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-10T14:50:52.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 25.7096774194, "max_line_length": 121, "alphanum_fraction": 0.5897114178}
'use strict';
function playFun() { 
let seriesList=['cukur','kara sevda','ertugrul','osman'];
console.log(seriesList);
console.log(seriesList.length);

let attempt=5;
let userIn=prompt('Guess My Favorite Turkish Series !!!  ' + (seriesList) );
console.log(userIn);
let corr=false;

while(attempt && !corr){
  for (let i=0 ; i < attempt ; i++){
    if (userIn===seriesList[0]){
      alert('correct answer! ' + seriesList[0]);
      corr=true;
      break;
    }
    attempt-=1;
    userIn=prompt('please try again you have : '+attempt+' remaining!                                    ' + seriesList);
  }
  if (!attempt && userIn===seriesList[0]){
    alert('correct answer! ' + seriesList[0]);
    corr=true;
    break;
  } if(!attempt){
    alert('No more attempts left !!!!');
  }
}
}
playFun();