Get Real Type

Published by Helen Yu in

Create a function that takes a value as an argument and returns the type of this value.

Examples

realType(1) ➞ "integer"

realType("a") ➞ "string"

realType(true) ➞ "boolean"

realType([]) ➞ "array"

realType(null) ➞ "NULL"

Notes

N/A

Watch a quick demo on how Edabit works.