You need to use the escape character for the double quotes enclosed inside the myStr string so that those inner double quotes are considered what they are and not confused with the outer double quotes.
That’s what the whole challenge is about. If the escape characters are not used inside, the opening quote of “double quoted” will be taken as the closing quote of "I am a.
There are more extra spaces than that. Javascript automatically inserts semicolons so that is not an issue, semicolons are only needed to be typed in certain situations and this is not one of those. But using semicolons or not is a debatable issue as any internet search will uncover.