What’s the actual difference between let, const, and var in JavaScript?

Home › Forums › Community › What’s the actual difference between let, const, and var in JavaScript?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #111
    Alex Hales
    Participant

    I’ve been learning JS for a few weeks now and every tutorial says something different. Some say var is dead, some say let and const are the same thing. I just want a straight answer from real developers — not another Medium article. What actually matters when I’m writing code day to day?

    Honestly, I’ve watched like 6 YouTube videos on this and I’m more confused than when I started. Everyone has a strong opinion and I just want to know what people actually use in real projects. If you’ve been coding for a while, what do you reach for and why?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.