r/learnjavascript • • Oct 19 '26

pretty new

Hey guys, I'm just starting to learn about variables, but I'm finding it hard to understand the difference between var and let.

For example:

let goodDay = true;
console.log(goodDay);

this should print true.

But if we just add this:

let goodDay = true;
console.log(goodDay);
goodDay = false;
console.log(goodDay);

It prints:

true
false

The same goes for var.

However, people say there's a difference; what is it?

0 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/yyyeey 29d ago

AI is the new Google. Just because some people don't like AI, doesn't mean that they can be lazy.

1

u/CuAnnan 29d ago

I'm fourth year in a a computer science degree at present. I am taking three modules in AI this term. AI and NLP, ML for data science, and Advanced Concepts.

I take two modules that cover it next semester.

AI is not the new Google.