0

How come even when you supply the correct answer in the lesson Rating Matters in web development course it says you are wrong?

The task gives you the line let userRating = 5; And tells you to log a message with the string "Thank you for rating us" plus the userRating at the end. The correct answer is console.log("Thank you for rating us " + userRating); AI solve says the same, bug checker says no bugs and is correct. But still i get syntax error missing + to concatenate the string and value??

31st Mar 2024, 8:54 PM
Trevor Cope
1 Odpowiedź
0
Try converting userRating to string before doing concatenations..
2nd Apr 2024, 9:00 AM
Blud PlayingGames
Blud PlayingGames - avatar