Lodash getting error right from beginning

const _ ={};

// Do not write or modify code below this line.
module.exports = _;

This is throwing an error when I first put in “node _.js”

module.exports = _;
^

ReferenceError: _ is not defined
at Object. (/home/ccuser/workspace/underscore-javascript-capstone/_.js:7:18)

I don’t understand this because it is the same code as in the get unstuck video. Am I missing something?

Hello, and welcome to the forums!

Did you press Save at the bottom? In some projects, the files automatically save, but this isn’t one that does that.

1 Like

Hey,
Yes thank you! That worked!
I didn’t think of that and was really scratching my head