I'm wondering what the difference is between two statements. I want to print a variable in a <p> html tag. Both statements do the same thing but one give me an error.
The first statement that works:
out += "</p><p style=""background-color:white"">"
out += uSetMinF
out += "</p><p>"
The second one that doesn't work:
out += "<p style=""background-color:white"">"uSetMinF"</p>"
Here's the error that I get:
out += "<p style=""background-color:white"">"uSetMinF"</p>"
^
SyntaxError: invalid syntax
Although the first statement works, I'd rather use the second one because it saves time and it's a little less code. I know it's semantics but I'm also curious. If someone knows the answer please let me know, thanks.