There are differences, but the differences are subtle.
But to truly understand this issue, you need to understand the different between es5 and es6. Programming languages get updates like other pieces of software. You use es6 (the 6th “edition”),
let was introduced in es6. Lets first go back to es5
in es5, there was
var (let and const didn’t exist). So then first you would have to understand the differences between
var x = 5 and
x = 5:
its a pity this answer is so old, but its still sort of relevant, then you need to understand the difference between var and let:
it goes quite in depth of the language, so see you what you can make of it.
Otherwise leave it for now, and come back later, once you understanding has improved.
For now, i would advise you to use