Introduction to programming 1
Which of the following statements best represents what a variable is?
A variable is a placeholder for a value you can use in your code.
JavaScript variables can be created without the var keyword. True or false?
True:It's true, they can. If you omit the var keyword your variable will still work. However, this can make your program work in ways you don't expect it to. In some versions of JavaScript there are alternative words you can use to declare variables but we won't be looking at them in this course.
Formally, creating a variable is called:
declaring
Formally, assigning a variable its first value is called:
initializing