function randomSequence() {
  let num = Math.floor(Math.random() * 4) + 1;
  if (num === 1) {
    sequence.push('green');
  } else if (num === 2) {
    sequence.push('red');
  } else if (num === 3) {
    sequence.push('yellow');
  } else if (num === 4) {
    sequence.push('blue');
  }
}
// create a random generated color code sequence that lengthens with each success
create a random generated color code sequence that lengthens with each success
create a random generated color code sequence that lengthens with each success
function randomSequence() {
  let num = Math.floor(Math.random() * 4) + 1;
  if (num === 1) {
    sequence.push('green');
  } else if (num === 2) {
    sequence.push('red');
  } else if (num === 3) {
    sequence.push('yellow');
  } else if (num === 4) {
    sequence.push('blue');
  }
}
function randomSequence ( ) { let num = Math . floor ( Math . random ( ) * 4 ) + 1 ; if ( num === 1 ) { sequence . push ( 'green' ) ; } else if ( num === 2 ) { sequence . push ( 'red' ) ; } else if ( num === 3 ) { sequence . push ( 'yellow' ) ; } else if ( num === 4 ) { sequence . push ( 'blue' ) ; } }
create a random generated color code sequence that lengthens with each success
create a random generated color code sequence that lengthens with each success