I'm not sure what's the best way to word this question but basically I'm working on my second Javascript project to build a Random Quote Generator when I noticed there's some syntax issues on my third quote (please see first screenshot) when my strings include words like "don't" or "can't". I'm not sure if it's because I wrote my strings as '"quote" - author' but this person on Youtube (please see second screenshot) wrote his strings using the same format but hadn't had any syntax issue.
Javascript - How to add strings with quotation marks inside a quotation mark?
400 views Asked by Daniel At
3
All of the above lines are allowed in JavaScript:
Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String