MUCH better topic name, @marlawashere.
So you’ve got the backslashes handled, kudos. But the thing biting you now is a common problem - when you open a quote, whether single quote (
' ) or double quote (
See how, right after the
var myStr =, you have that single quote mark? Where’s its buddy?
The point of this lesson is, within a single-quote string, you can embed double quotes without needing to do some special escape trick. Or, within a double-quoted string, you can use single quotes as though they’re just a normal character. But if you surround a string with single quotes and try to embed that single quote, you have to ‘escape’ it with the backslash.
'This isn\'t a number, it\'s a string' - in order to use the apostrophe in there, I had to either use the backslash, OR replace the surrounding quotes with double quotes: `“This isn’t a number, it’s a string” is fine.