SitePoint
  • Premium
  • Library
  • Community
  • Jobs
  • Blog
LoginStart Free Trial
JavaScript: Best Practice
JavaScript: Best Practice
Notice of Rights
Notice of Liability
Trademark Notice
About SitePoint
Who Should Read This Book?
Conventions Used

1

The Anatomy of a Modern JavaScript Application

A Note About Node.js
JavaScript ES2015+
Modular Code
Package Management
Build Tools
Application Architecture
Deployment
Conclusion
ES6 Default Parameters
ES6 Property Shorthands
Conclusion
Setting the Stage
What Exactly is Performant JS Code?
Context is Everything
Parsing, Compiling and Executing
Bundle Sizes are Everything
Conclusion
Explaining ES6
What Is a Singleton
The Old Way of Creating a Singleton in JavaScript
The New Way(s)
Conclusion
Object Literals
Factory Functions
Prototype Chains
ES5 Classes
ES6 Classes
Comparison
Conclusion
Something Solid to Cling To
A Spoonful of Syntactic Sugar
When Your const Isn’t Consistent
Limiting the Scope of the Function
Understand What You’re Getting
Single-thread Processing
Going Asynchronous with Callbacks
Promises
Async/Await
JavaScript Journey
ES6 Class Basics
Getters and Setters
Child or Sub-Classes
Static Methods and Properties
ESnext Class Fields
Immediate Benefit: Cleaner React Code!
Using Class Fields Today
Class Fields: an Improvement?

Best Practices for Using Modern JavaScript Syntax

Unlock This Title

You do not have access to this section. Get the full version of this title with a Free SitePoint Account.

Start Free TrialRead Free Preview

Already have an account? Sign In

Community Questions