From the course: JavaScript: Best Practices for Code Formatting

Modern standards for your JavaScript - JavaScript Tutorial

From the course: JavaScript: Best Practices for Code Formatting

Start my 1-month free trial

Modern standards for your JavaScript

- [Sasha] JavaScript is a forgiving language when it comes to code formatting, and JavaScript developers employ a variety of code styles. But there are some widely-accepted best practices for code formatting among JavaScript developers that can make your code easier to read and understand for team members you work with, other developers who might work with your code in the future, and for you, yourself, when you return to your own code after some time away. Implementing best practices in your code and configuring tools to help you can also sharpen up files that may look sloppy or poorly organized simply as a result of your use of spaces, punctuation, and line breaks. In my LinkedIn Learning course, I explore best practices as laid out in some of the industry's most commonly referenced style guides. I also show you how to set up ESLint rules to flag deviations from styles that you set and how to turn on features in your editor that can help format your code as you write and save it. I'm Sasha Vodnik, and I've been writing JavaScript since the browser wars of the '90s. If you want to put modern code formatting to work on your team, an open source project, or just in your own personal work, I invite you to join me for this course on JavaScript best practices for code formatting.

Contents