ELI5: Explain Like I'm 5

Uninitialized variable

Hey there! So imagine you just got yourself a brand new toy box. But, the toy box is empty and you haven't put any toys inside yet. That toy box is like an "uninitialized variable".

In computer programming, when we create a variable, we need to give it a value before we can use it. This is like putting toys in our toy box. If we don't do this, and try to use the variable anyway, our program won't know what to do with it, just like you can't play with a toy box that has no toys in it.

So, in short, an uninitialized variable is like an empty toy box without any toys in it. We need to give it a value (put toys in the box) before we can do anything with it.
Related topics others have asked about: