Sample Video Frame
06: Escape Sequences
This exercise will be a puzzle exercise. What I mean by this is I'm going to give you the code without much explanation, and with a few errors, and then you have to figure out how to fix it. It's only about four lines of code, so you should be able to make it work.
The Code
I recommend you study the first two lines to figure out what I'm doing and then try to fix the next two lines. I will periodically do these puzzle exercises so you get used to fixing broken code. Trust me, the world of programming is full of nothing but broken code.
let talking = "I'm not sure if she said, \"Hello\" or not.";
let walking = 'I\'ll need to go \'cause you don\'t know.';
// These strings are broken. Use escapes to fix them.
let height = "6'2"";
console.log('I'm not g'na see y'all for a while.');
Register for The Pro-Webdev Mega Bundle
Register today for the course and get the all currently available videos and lessons, plus all future modules for no extra charge.