Utils.js documentation

In the learn (Node) Express.js routes curriculum, we were introduced to the utils.js module. However, there was not much explanation about it. We used the following methods from the module.

const { getElementById, getIndexById, updateElement,
        seedElements, createElement } = require('./utils');

In my quest to learn more about it, I did a google search and found documentation for two other modules; ulit.js and UTILS.js. However, I cannot find the documentation for utils.js.

Can anyone provide the URL link for this module or give me a hint on where to search for it?

Thank you in advance:slightly_smiling_face:


Never mind. I figured it out. (’./utils’) is a custom module. It would have been nice to be able to see the file and it’s contents.

Hey @jeffa! Can you share the link of the exercise?


1 Like

Hello, @jeffa.

If you click on the folder icon in the top left corner of the code editor, you can see the files included. The icon is not included in every exercise, but it is in this one.
InkedScreenshot_2021-05-28 Learn Express Routes Codecademy_LI

You can then select the utils.js file, and view the contents.

1 Like

Thanks for your help.

1 Like