DEV Community

Discussion on: The Proper Way to Write Async Constructors in JavaScript

Collapse
 
andrade0 profile image
andrade0

Why # in attributes ? Never seen that before ?

Collapse
 
somedood profile image
Basti Ortiz

Oh, the # are for declaring private instance fields. They're a really neat feature if you want to keep your class variables secret.