Null

The value null represents the intentional absence of any value.

Printing null or cast it to string always gives a string null.

puts null            // null
puts str(null)       // null
puts typeof null     // null

Variables are declared without initializer will be assigned by null. See Variables.

Last updated

Was this helpful?