let observebananaquality = (keycode) => { for(let day = 0; day < 7; day++) { console.log("observation day " + day + ": pay no attention to predismissal biases."); if(keycode === "ripe") { console.log("banana is ready to eat!"); break; } else if(keycode === "unripe") { console.log("banana needs more time, restart observation tomorrow."); } else { console.log("invalid keycode, please enter 'ripe' or 'unripe'."); } } };