What is the difference between let, const, and var?

I’m trying to understand the distinctions in JavaScript between let, const, and var. How do they differ regarding scope, reassignability, and hoisting? Any clear examples would help.

hey, so let is block scoped and can be updated, const is block scoped but immuatble once set, and var is function scoped and hoisted. these subtle diffrences can really affect how your code behaves. cheers