Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to call my nodejs file in my website?
I do have a node.js file with this code:
The nodejs basically based on the number the random function prints,sends as response the someFile.js or someOtherFile.js
Now, i do have a website called site.com hosted in let’s say Godaddy which calls this node.js each time someone accesses the website.
How do i do that?! Any idea please? Thank you!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×