+ 2

Important reminders

function main() { var eventExample = readLine(); console.log("You set a reminder about" +" "+ eventExample ) setReminder(eventExample) } //complete the function function setReminder() { }; Hello this is my correct ans, but as you can see, there's one part not ready can you help me?: //complete the function function setReminder() { }; Also, why there's one semi.colon here? Thank you very much

31st Jan 2022, 12:49 PM
josé manuel
josé manuel - avatar
1 Respuesta
+ 4
josé manuel , you are very close to the solution. see the code with comments: function main() { var eventExample = readLine(); // console.log("You set a reminder about" +" "+ eventExample ) <<<--- place this line inside the function and remove it here setReminder(eventExample) } function setReminder(eventExample) { console.log("You set a reminder about" +" "+ eventExample ) }; // semicolon at the end of the function
31st Jan 2022, 4:15 PM
Lothar
Lothar - avatar