In #JavaScript, I find it's typically preferable to create a file with plain...


In #JavaScript, I find it's typically preferable to create a file with plain functions than to declare a class.

Here's a diff that outlines the advantages of using plain functions.

View original on X