.getType()

Description

getType returns the data type of its input value

Learn more about types here: Types

Parameters

getType takes no parameters

Usage

val = 16

log val.getType()
// "number"
val = true

log val.getType()
// "boolean"
val = "hello"

log val.getType()
// "string"
val = []

log val.getType()
// "array"
val = {}

log val.getType()
// "object"

Last updated