Am stuck in js 25.2 function parameters | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Am stuck in js 25.2 function parameters

I even tried the exact code given in the solutions, still it wouldn't be correct and I can't move to the next lesson

20th May 2022, 2:22 AM
Risky Llama
Risky Llama - avatar
5 Answers
+ 3
Thanks it worked A͢J
20th May 2022, 3:16 AM
Risky Llama
Risky Llama - avatar
+ 2
You need to give an extra space after your text. Try - console.log('You set a reminder about ' + event); or console.log(`You set a reminder about ${event}`);
20th May 2022, 4:10 AM
zexu knub
zexu knub - avatar
+ 1
Share your solution?
20th May 2022, 2:43 AM
A͢J
A͢J - avatar
+ 1
Risky Llama There should be space after "about"
20th May 2022, 3:10 AM
A͢J
A͢J - avatar
0
function main() { var eventExample = readLine(); // function call setReminder(eventExample) } //complete the function function setReminder(event){ console.log('You set a reminder about' +event); };
20th May 2022, 2:59 AM
Risky Llama
Risky Llama - avatar