Quantcast
Channel: Import class from Node.js in normal JavaScript - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Julio Peña for Import class from Node.js in normal JavaScript

I think only in two methods for solved your problemMETHOD 1Module1.js class HelloWorld { getHelloWorld() { return 'Hello World'; }}module.exports = HelloWorldModule2.jsconst HelloWorld =...

View Article


Import class from Node.js in normal JavaScript

I have files that use the Node.js framework and other files that I want to implement without using that. When I try to import a class from my node files, where I used module.exports, to my js files, i...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>