Loading
Current section: 2. Variables 4 exercises
Problem

Let And Const

Loading exercise

Transcript

00:00 Let's talk about variables. Variables are really foundational for TypeScript and all programming in general. And in this exercise, we are going to have two ways to declare a variable, let and const, where const is a well, actually, both of them are pointers to a value of some kind, whether that be a place in memory that is an object and that's pointers to other things, or a simple singular value of, like, $6 or whatever. So, the, the point is that these are pointers to something, and those pointers can change what they're pointing at if it's a let. If it's const, then that pointer cannot change.

00:43 And that's what we're going to learn about in this exercise. I'm gonna hand you off to the exercise instructions. Go ahead and work on that, and we'll see you in the solution.