ybekieSma5
New Member
I have some javascript code that users the ternary operator to determine the first part of a message variable. \[code\]response.answer == "stack overflow" ? message = "blah blah some message." : message = "blah blah some other message" + some variable; \[/code\]Once that ternary operator's complete, I then concatenate more onto the string. \[code\]message += " About me: my name's Blah blah. Contact me on @blah blah Twitter. This game was made with blah blah."\[/code\]How would you add a span class to the string contained in the message variable so that it can be styled?