Why does the following not appear in the browser correctly i.e. why doesn’t the browser interpret the "s as quotes and instead doesn’t do anything with them.
foo += " + value + " + ',';
foo is a string that gets iteratively built.
Many thanks :).
"is an HTML entity and has nothing to do with JavaScript. If you buildfoo = """ + value + """and then assignelement.innerHTML = foo;(e.g.elementis a<div>) then the element’s text will be"value".