.len

Description

Len is a dynamic property, that returns the length of its input value.

Parameters

Len takes no parameters

Usage On Numbers

num = 42
// setup the number

log num.len
// converts the number to a string and returns the length of the string
// returns 2

Last updated

Was this helpful?