Null object: Difference between revisions
Content added Content deleted
(Add Neko) |
(Add Jsish) |
||
Line 749: | Line 749: | ||
empty == "black hole" # => # Ничего</lang> |
empty == "black hole" # => # Ничего</lang> |
||
=={{header|Jsish}}== |
|||
Like Javascript, Jsish has "undefined" and "null". |
|||
<lang javascript>/* null non value */ |
|||
if (thing == null) { puts("thing tests as null"); } |
|||
if (thing === undefined) { puts("thing strictly tests as undefined"); } |
|||
puts(typeof thing); |
|||
puts(typeof null); |
|||
puts(typeof undefined);</lang> |
|||
{{out}} |
|||
<pre>prompt$ jsish nulling.jsi |
|||
thing tests as null |
|||
thing strictly tests as undefined |
|||
undefined |
|||
null |
|||
undefined |
|||
</pre> |
|||
=={{header|Julia}}== |
=={{header|Julia}}== |