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:

Jeff

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?

https://www.codecademy.com/paths/back-end-engineer-career-path/tracks/becp-build-a-back-end-with-node-express-js/modules/fscp-learn-express-routes/lessons/learn-express-routes/exercises/wrap-up

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.
image

1 Like

Thanks for your help.

1 Like