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); };
1 ответ
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!