|
Answer:
The semicolons aren't the object that's causing you trouble if I'm reading your code correctlyyou're mixing single and double quotes in a nested fashion. This is okay, but you're enclosing single quotes in double quotes and then, again, in single quotes. The inner single quotes are being treated as the end of the string.
Instead of this code:
String = ' outer = " inner ' really inner' " ';
Try:
String = ' outer = " inner \' really inner\' " ';
The JavaScript engine knows to treat the quote following the backslash as a literal value rather than to interpret it as the end of the string.
DevX Pro
|