node js import class from another file code example Example: javascript class in external file class User { //... } module.exports = User