0

Hi I'm having problems with this code in the code coach but in the code play ground no, and I don't know why

I'm doing a task The task is this: Sometimes it is very useful to set reminders to help you accomplish all your tasks. The program you are given takes an event as input. Complete the function reminder to take that event as an argument and output the corresponding message. input example workout output example You set a reminder about workout Use the + operator to concatenate string values ​​together. eg console.log("JS is " + "fun!") will output "JS is fun". And this is the code that the task give me and in the one I'm working function main() { var eventExample = readLine(); // llama a la función setReminder(eventExample); } function setReminder(eventExample) { console.log("You set a reminder about" + " " + eventExample ) } main(setReminder); For some reason it works like I said in the code play ground but not in the code coach when Im going to try the code, if somebody see why this is happening please tell me, i don't know if it' is the code or something else

16th Dec 2022, 3:18 AM
Alan Restrepo
Alan Restrepo - avatar
3 Respostas
+ 3
Hi Alan, I just tested your code in the Coach's playground and it was working fine. I just removed that one line which calls main() below the setReminder() body, and it all works afterwards. Go ahead give it a try!
16th Dec 2022, 3:51 AM
Ipang
+ 2
Ipang you're right, i tested de code and it went fine, Crist bless you
16th Dec 2022, 3:55 AM
Alan Restrepo
Alan Restrepo - avatar
0
Ipang ok I'll try
16th Dec 2022, 3:52 AM
Alan Restrepo
Alan Restrepo - avatar