Does it matter if I use ' or " for my strings?


#1


I've noticed that the examples go from using ' for their strings ('like this') and " ("like this") so is there any reason to be using one over the other or is it just a matter of user preference?


Replace this line with your code.


#2

Check out the documentation on strings at
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String

Since you're looking for the difference between double and single quotes, use your browser's find function to look for mentions of "quote"


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.