Author
Released
4/13/2020- Style guides
- Modern deployment tools
- Better ways to declare variables
- Removing unused variables
- Assigning values
- Creating arrays and objects using literals
- Typecasting strings, numbers, and Booleans
- Comparing values appropriately
- Adding parentheses to clarify logic
Skill Level Intermediate
Duration
Views
- [Sasha] JavaScript is pretty permissive when it comes to creating and using variables and working with different types of data. But moving from code that usually works to code that's specifically optimized to avoid corner cases requires a deeper dive into the trade-offs between different approaches. Implementing best practices in your code and configuring tools to help you can also sharpen up code that may still be relying on outdated approaches to important processes, like declaring variables, and type casting values. 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 ES Lint rules to flag deviations from styles 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. I'm a JavaScript developer, and I've learned the hard way what works and what doesn't when it comes to working with data. If you want to implement modern strategies for working with data 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 data.
Related Courses
-
Learning App Building with Vanilla JavaScript
with Sasha Vodnik1h 44m Intermediate -
Processing and Interchanging JSON Data
with Sasha Vodnik1h 27m Intermediate
-
Introduction
-
1. Why Best Practices?
-
Understanding style guides2m 47s
-
Understanding ESLint2m 36s
-
-
2. Declaring Variables
-
Prefer const, then let5m 7s
-
Standardize acronym case2m 22s
-
Remove unused variables1m 18s
-
Solution: Declare variables5m 38s
-
-
3. Assigning Values
-
Standardize quotes2m 24s
-
Solution: Assign values3m 23s
-
4. Type Casting
-
Challenge: Type cast1m 7s
-
Solution: Type cast2m 39s
-
5. Comparing Values
-
Don't use Yoda conditions1m 52s
-
Solution: Compare values9m 29s
-
Conclusion
-
Next steps33s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Working effectively with JavaScript data