I do not know why this isn't working but require on node.js is not working why is that?

Viewed 19

So on the first image you see me requiring the module newSayHi (let hello = require('./newSayHi'). On the second image I've exported the variable word with the value 'hello'. But as you can see, the require doesn't work as it returns undefined for the hello.word.

First Image

Second Image

What could be wrong here? could it be because of this: Third Image

0 Answers
Related