25.2 practice | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

25.2 practice

No entiendo. Quien me ayuda? I don't understand. Who helps me with this? function main() { var eventExample = readLine(); // llama a la función setReminder(eventExample) } main(); //completa la función function setReminder(event) { var event = workout; console.log("you set a reminder about " +event); }; setReminder();

29th Sep 2022, 1:43 PM
Marcelo Ferreyra
Marcelo Ferreyra - avatar
6 Answers
+ 1
"workout" is not defined. We don't need this, just use "event". I made some comments in the code. https://code.sololearn.com/cBwcjjmcGG8K/?ref=app
29th Sep 2022, 1:51 PM
Lisa
Lisa - avatar
0
And now? function main() { var eventExample = readLine(); // llama a la función setReminder(eventExample) }; //completa la función function setReminder(eventExample) { console.log("you set a reminder about " +eventExample) };
13th Oct 2022, 1:45 PM
Marcelo Ferreyra
Marcelo Ferreyra - avatar
0
Did you run it? Does it pass the tests?
13th Oct 2022, 2:26 PM
Lisa
Lisa - avatar
0
Yes. But it doesn't happen.
13th Oct 2022, 2:34 PM
Marcelo Ferreyra
Marcelo Ferreyra - avatar
0
Check the spelling in the task description again: I think it needs to be "You", not "you"
13th Oct 2022, 2:38 PM
Lisa
Lisa - avatar
0
Lisa That's it. It was that. Thank you very much for your help and time. Thank you again!
13th Oct 2022, 2:48 PM
Marcelo Ferreyra
Marcelo Ferreyra - avatar