String
, Number
, Boolean
, null
, undefined
, and Symbol
.any
, void
, and never
. Let's add some types to the code!any
type is the default value for any variable or argument: this behaves exactly like JavaScript.eventType
variable can only have one of the two values. This is called a union type and can be used with all types:tuple
types):type
keyword: