0
Code working but not being accepted?
Iâm on a practice challenge for functions in JS and it wants me to take user input and output âyou set a reminder forâ and then the users input. Below is the code which when run does exactly that but it says itâs wrong and wonât let me proceed? function main() { var eventExample = readLine(); // function call setReminder(eventExample) } //complete the function function setReminder(name) { console.log("You set a reminder about" + "\xa0" + name); };
2 Answers
0
\xa0 was the problem, i needed to add a space so used that but all i had to do was (âYou set a reminder about â) adding the space in the actual string itself. Cant believe i missed that, thank you!