javascript how to require class code example Example: javascript class in external file class User { //... } module.exports = User