Let’s dive right in
- String: This is a datatype used to represent text. It is a collection of characters and is usually declared with in quotation marks for example: “This is a string”
- Numbers: This refers to numbers that are integers and decimals(that we will call floating point numbers).
- Boolean: This refers to true or false
The type of operator is used to check the data types of an operator For example, typeof(“Check Me”) returns “string” which shows us that “Check Me” is of datatype string. What would typeof(2) return? We will run typeof(2) in the spck editor as shown in this video to check what it returns.