Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The typeof() operator returns the type of the object to which it is applied. The return value is one of the strings that may be passed to as(), or one of the other following values:

  • "Array"

  • "Map"

  • "Null"

  • "Hex"

For example:

Code Block
languagejavascript
themeConfluence
nums = [1, 2, 3]
nums_type = nums.typeof() // nums_type = "Array"

...