text: let phrase = '';
  
  let userConfirmedPhrase = false;
  while (!userConfirmedPhrase) {
    phrase = prompt('enter a phrase to search');
    if (phrase === null) {
      continue;
    }
  
    userConfirmedPhrase = confirm('is this correct: "' + phrase + '"');
  }
  
  let caseSensitive = confirm('do you want a case-sensitive search?');
  
  let query = '';
  
  let userConfirmedQuery = false;
  while (!userConfirmedQuery) {
    query = prompt(
      'enter a search query, this program will check if it exists in your phrase'
    );
    if (query === null) {
      continue;
    }
  
    userConfirmedQuery = confirm('is this correct: "' + query + '"');
  }
  
  let phraseIncludesQuery = false;
  if (caseSensitive) {
    phraseIncludesQuery = phrase.includes(query);
  } else {
    let lowerCasePhrase = phrase.toLowerCase();
    let lowerCaseQuery = query.toLowerCase();
    phraseIncludesQuery = lowerCasePhrase.includes(lowerCaseQuery);
  }
  
  let doesOrNot = '';
  if (phraseIncludesQuery) {
    doesOrNot = 'does';
  } else {
    doesOrNot = 'does not';
  }
  
  alert(
    '"' +
      phrase +
      '" ' +
      doesOrNot +
      ' include "' +
      query +
      '"\n\n' +
      'case sensitive: ' +
      caseSensitive
  );
  