scripts/advancedControlFlowEx2.js
// #6 return value when moveCommend("something")  // Please enter a valid direction

6 return value when moveCommend("something")  // Please enter a valid direction
6 return value when moveCommend ( " something " ) // Please enter a valid direction
function printOut() {
  for (let i = 0; i < moves.length; i++) {
    let temp = moveCommand(moves[i]);
    console.log(temp);
  }
}
function printOut ( ) { for ( let i = 0 ; i < moves . length ; i ++ ) { let temp = moveCommand ( moves [ i ] ) ; console . log ( temp ) ; } }
6 return value when moveCommend("something")  // Please enter a valid direction
6 return value when moveCommend ( " something " ) // Please enter a valid direction