Could anyone please help me out with this one ? Thank you in advance! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

11th Jul 2021, 6:45 AM
Sanchit Bahl
Sanchit Bahl - avatar
2 Answers
+ 2
function main() { var eventExample = readLine(); // function call setReminder(eventExample); } //complete the function function setReminder(eventExample){ console.log('You set a reminder about '+ eventExample); }
11th Jul 2021, 6:57 AM
visph
visph - avatar
+ 1
They already called the function above. Now I get it🤦. Thanks for your help though👍
11th Jul 2021, 8:22 AM
Sanchit Bahl
Sanchit Bahl - avatar