Type detection: Difference between revisions

Content added Content deleted
m (Regularize non-standard header markup)
Line 329: Line 329:
</pre>
</pre>


== {{header|J}} ==
=={{header|J}}==


Presumably this satisfies the task requirements...
Presumably this satisfies the task requirements...
Line 338: Line 338:
1</lang>
1</lang>


== {{header|Java}} ==
=={{header|Java}}==
{{trans|Kotlin}}
{{trans|Kotlin}}
<lang Java>public class TypeDetection {
<lang Java>public class TypeDetection {
Line 366: Line 366:
'true' is some other type</pre>
'true' is some other type</pre>


== {{header|JavaScript}} ==
=={{header|JavaScript}}==


[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FOperators%2Ftypeof]
[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FOperators%2Ftypeof]
Line 428: Line 428:
</lang>
</lang>


== {{header|OASYS Assembler}} ==
=={{header|OASYS Assembler}}==


<lang oasys_oaa>
<lang oasys_oaa>
Line 581: Line 581:
</pre>
</pre>


== {{header|PHP}} ==
=={{header|PHP}}==


[http://php.net/manual/en/function.gettype.php]
[http://php.net/manual/en/function.gettype.php]
Line 617: Line 617:
</pre>
</pre>


== {{header|Python}} ==
=={{header|Python}}==
Built-in function <code>type()</code>
Built-in function <code>type()</code>
<pre>
<pre>