src/word_library.js
function warning() {
  let sentence = "";
  const avoidList = getWords("avoid_list");
  const avoid = nu.chooseFrom(avoidList);
  const rnum = Math.floor(Math.random() * 10);
  if (rnum <= 3) {
    sentence = `You would be well advised to avoid ${avoid}`;
  } else if (rnum <= 6){
    sentence = `Avoid ${avoid} at all costs`;
  } else if (rnum <= 8) {
    sentence = `Steer clear of ${avoid} for a stress-free week`;
  } else {
    sentence = `For a peaceful week, avoid ${avoid}`;
  }
  return nu.sentenceCase(sentence);
}
function warning() {
  let sentence = "";
  const avoidList = getWords("avoid_list");
  const avoid = nu.chooseFrom(avoidList);
  const rnum = Math.floor(Math.random() * 10);
  if (rnum <= 3) {
    sentence = `You would be well advised to avoid ${avoid}`;
  } else if (rnum <= 6){
    sentence = `Avoid ${avoid} at all costs`;
  } else if (rnum <= 8) {
    sentence = `Steer clear of ${avoid} for a stress-free week`;
  } else {
    sentence = `For a peaceful week, avoid ${avoid}`;
  }
  return nu.sentenceCase(sentence);
}
function warning ( ) { let sentence = "" ; const avoidList = getWords ( "avoid_list" ) ; const avoid = nu . chooseFrom ( avoidList ) ; const rnum = Math . floor ( Math . random ( ) * 10 ) ; if ( rnum <= 3 ) { sentence = ` ${ avoid } ` ; } else if ( rnum <= 6 ) { sentence = ` ${ avoid } ` ; } else if ( rnum <= 8 ) { sentence = ` ${ avoid } ` ; } else { sentence = ` ${ avoid } ` ; } return nu . sentenceCase ( sentence ) ; }
Warns of what to avoid
@returns {*}
Warns of what to avoid