Let and var for variable declarations
Let and var keyword for variable declarations, those two allows you to declare variables. Let see the difference.
Here we declare a variable called: careId using: let keyword and assigning 43.
let carId = 43;
Now if we try to reference careIdbefore we declare it we get the error:
console.log(careId); // error! let careId = 43;
And that makes total sense. The program run from top to bottom and we try to use a variable that is not declared yet. But if we declare: carId using the var keyword and try to access carId we do not get an error.