Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JavaScript Value JavaScript Type Java Type Is Scriptable Is Function
{a:1, b:['x','y']} object org.mozilla.javascript.NativeObject + -
[1,2,3] object org.mozilla.javascript.NativeArray + -
1 number java.lang.Double - -
1.2345 number java.lang.Double - -
NaN number java.lang.Double - -
Infinity number java.lang.Double - -
-Infinity number java.lang.Double - -
true boolean java.lang.Boolean - -
"test" string java.lang.String - -
null object null - -
undefined undefined org.mozilla.javascript.Undefined - -
function () { } function org.mozilla.javascript.gen.c1 + +
/.*/ object org.mozilla.javascript.regexp.NativeRegExp + +
@andrew-medvedev
Copy link

andrew-medvedev commented Jul 11, 2014

thx

@vamshi7699
Copy link

vamshi7699 commented Jan 6, 2022

Hi, i have doubt. I'm completely new to this.
Why is 1 converted to a Double and not an Integer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment