Let's say I have a variable which gets a request from a database, the request is going to be different every time the function is being called, but within one run of the function, that variable is not going to reassigned. Should I use LET or CONST please? It's quite confusing
async setSetting(guildID, settingName, value) { let settingToFind = { guildID: guildID, setting: settingName }; /* Some code but settingToFind is not reassigned within the function... */ } Here is an other example of where I'm not sure if I should use let or const (for settingToFind)