Will someone please point me to the Mongo documentation for the “let” command?
Seems to be used to execute a dB call to set a cursor like “let result = await companiesCollection.updateOne(documentToUpdate, updateEmployees)”
Seems to be used to set a variable value: let documentToUpdate = {“name”:“Zvents”}
However, the “const” command is also used to set a variable value:
const update = { $inc: { balance: 100 }}
Why have two ways to do the same thing?