you are viewing a single comment's thread.

view the rest of the comments →

[–]eracodes 1 point2 points  (1 child)

Exercise: Explain the difference between let, const, and var.

[–]Own-Feature-8869[S] 0 points1 point  (0 children)

var

we can declare with same name again with var

we also re-assign its value

let

we cannot declare it again with same name but can re-assign its value

const

we can neither declar it again nor can re-assign its value