Welcome to this week’s video by comscience simplified.
In this video, we dig into a pretty common confusion as far as node js programming is concerned. Even you might have encountered this issue while working with node wherein you are trying to export something from inside of a module by assigning it to the exports property. Sometimes it works while other time it does not.
This video explains why.
Here are some links to our other popular videos:
1. Learn about public-key cryptography
2. maximum substring in a string (Google interview question)
3. How the javascript engine works?
4. Real time median in a stream, another google interview question
5. Understand the Javascript event loop
6. Understand Promises in javascript
7. Git basics you must know
This video makes use of Icons made by Flat Icons (https://www.flaticon.com/authors/flat-icons) from www.flaticon.com
Original source
One response to “Module.exports v/s exports | Javascript shorts”
Thank you I've been having trouble with express in firefox