From the course: JavaScript: Best Practices for Code Formatting

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Challenge: Optimize spacing

Challenge: Optimize spacing - JavaScript Tutorial

From the course: JavaScript: Best Practices for Code Formatting

Start my 1-month free trial

Challenge: Optimize spacing

(upbeat electronic music) - [Narrator] Ready for a challenge? The start files contain code for a grocery shopping app. Edit the script.js file to implement and enforce best practices for spacing in JavaScript, including indents, spacing around characters and blank lines. This should take you about five minutes. When you're done, join me in the next video and I'll walk you through how I approached it.

Contents