# The JavaScript You Need: Variables, Functions and Modules

The pet adoption API in this module is written in JavaScript, and this lesson teaches the part of it you'll change, starting from the objects you already know from mongosh, then const and let, functions with return and template literals, arrow functions with filter and find, and import and export between files.

![Cheat sheet: The JavaScript You Need: Variables, Functions and Modules](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/f98eaa7ad4294acca223a0458101feb9.webp)

- Category: MongoDB
- Level: Apprentice
- Tags: Arrow Function, const, ES Module, filter(), JavaScript, let, Template Literal
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-javascript-you-need-functions-and-modules-cheat-sheet
