From the course: JavaScript: Best Practices for Code Formatting
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Optimize punctuation - JavaScript Tutorial
From the course: JavaScript: Best Practices for Code Formatting
Challenge: Optimize punctuation
(pleasant electronic music) - [Instructor] 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 punctuation in JavaScript including semicolons, line length, and commas. 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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
End statements with a semicolon5m 10s
-
(Locked)
Don't rely on auto semicolon insertion4m 19s
-
(Locked)
Standardize line length6m 33s
-
(Locked)
Use commas consistently3m 38s
-
(Locked)
Include a comma in a list of values3m 21s
-
(Locked)
Challenge: Optimize punctuation31s
-
(Locked)
Solution: Optimize punctuation5m 23s
-
(Locked)
-
-