← #18 Visualize elements on page with the outline style

Get rid of escaping quotes with template literal

Topics: JavaScript

You can use the template literal syntax in ES6 to get rid of escaping quote. For example:

// Instead of
const message = 'It\'s a message';

// We can do this which is more convenient
const message = `It's a message`;


Fix a typo or suggest an improvement
#20 Track the focused element with Chrome DevTools