I came across this query and am considering the similar issue in JavaScript.
When creating strings in JavaScript, using the character'or the character " seems to have no effect on how the application functions. What distinguishes these two characters from one another, then?
The only benefit I can think of for using'to construct strings is that I can do things like
var toAppend = '<div id="myDiv1"></div>';
Instead of:
var toAppend = "<div id=\"myDiv1\"></div>";
Is there any significant difference between them that I should be aware of?
: