Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Need Help With the Function Parameters Reminder Problem
I'm having trouble figuring out why the output of my code is "You set a reminder about NaN". function main() { var eventExample = readLine(); // function call setReminder(eventExample); } //complete the function function setReminder() { var eventExample = parseInt(readLine()); console.log("You set a reminder about " + eventExample); }; The question is to have the output be "You set a reminder about" + event (which is the input). I've been looking for something to help anywhere on the internet, but I seem to be stuck on this one.
1 ответ
0
you call the input function twice. Since there is only one input, the second call to input will simply read a blank.