0
Could anyone please help me out with this one ? Thank you in advance!
Sometimes it’s very useful to set reminder to help you accomplish all of your tasks. The program you are given takes an event as input. Complete the function-reminder to take that event as argument and output the corresponding message. function main() { var eventExample = readLine(); // function call } //complete the function function setReminder(eventExample){ console.log('You set a reminder about '+ eventExample); } setReminder('workout'); I am getting only one case correct i.e. the first test case. I also tried without inputting workout, but still not working.
2 Antworten
+ 2
function main() {
var eventExample = readLine();
// function call
setReminder(eventExample);
}
//complete the function
function setReminder(eventExample){
console.log('You set a reminder about '+ eventExample);
}
+ 1
They already called the function above. Now I get it🤦. Thanks for your help though👍