Overview
Students learn to create and assign values to variables and are navigated through common misconceptions.Vocab
- Data Type - All values in a programming language have a "type" - such as a Number, Boolean, or String - that dictates how the computer will interpret it. For example 7+5 is interpreted differently from "7"+"5"
- Expression - Any valid unit of code that resolves to a value.
- Variable - A label for a piece of information used in a program.
New Code
write(text)value1 + value2;num1 - num2;num1 * num2;num1 / num2;randomNumbervar x = __;x = __;var x = promptNum("Enter a value");var x = "__";