0

Simple concatenation explanation please

I have not gotten past this section, pretty sure it’s a simple answer: Write Java code for a given variable useRating = 5 with the string “Thank you for your rating” to the console log? I have done well on most parts of the course SoloLearn. Keep coding! Thank you

21st Nov 2025, 9:30 PM
Alberto Sandoval
2 odpowiedzi
0
Java and Javascript are nit the same language. This is SUPER important. Join atring by using the "+" operator.
21st Nov 2025, 10:27 PM
Lisa
Lisa - avatar
0
Thank you. I wrote a few times: console.log(“thank for your rating” + userRating); and still get error messages. Do you recall what you wrote
21st Nov 2025, 10:48 PM
Alberto Sandoval