98762d6ee0
Co-authored-by: Akhil Arora <akhil.arora@oracle.com> Co-authored-by: Andreas Woess <andreas.woess@jku.at> Co-authored-by: Attila Szegedi <attila.szegedi@oracle.com> Co-authored-by: Hannes Wallnoefer <hannes.wallnoefer@oracle.com> Co-authored-by: Henry Jen <henry.jen@oracle.com> Co-authored-by: Marcus Lagergren <marcus.lagergren@oracle.com> Co-authored-by: Pavel Semenov <pavel.semenov@oracle.com> Co-authored-by: Pavel Stepanov <pavel.stepanov@oracle.com> Co-authored-by: Petr Hejl <petr.hejl@oracle.com> Co-authored-by: Petr Pisl <petr.pisl@oracle.com> Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com> Reviewed-by: attila, hannesw, lagergren, sundar
52 lines
1005 B
Plaintext
52 lines
1005 B
Plaintext
3
|
|
isArray.length = 1
|
|
false
|
|
true
|
|
join.length = 1
|
|
javascript<->is<->great
|
|
every.length = 1
|
|
4,56,5 every even? = false
|
|
4,56,688 every even? = true
|
|
some.length = 1
|
|
4,56,5 some even? = true
|
|
3,5,17 some even? = false
|
|
forEach.length = 1
|
|
java,javascript,jython,jruby[0] is java
|
|
java,javascript,jython,jruby[1] is javascript
|
|
java,javascript,jython,jruby[2] is jython
|
|
java,javascript,jython,jruby[3] is jruby
|
|
JAVA,JAVASCRIPT,JYTHON,JRUBY
|
|
shifted is java, remaining is javascript,jython,jruby, length is 3
|
|
java,javascript
|
|
115
|
|
120
|
|
c++ java javascript objective c
|
|
hello world from javascript
|
|
indexOf.length = 1
|
|
indexOf('java') = 0
|
|
indexOf('javascript') = 1
|
|
indexOf('javascript', 3) = -1
|
|
indexOf('c++') = -1
|
|
[].indexOf('any') = -1
|
|
lastIndexOf.length = 1
|
|
lastIndexOf('java') = 4
|
|
lastIndexOf('jython') = 5
|
|
lastIndexOf('c') = 6
|
|
lastIndexOf('c++') = -1
|
|
[].lastIndexOf('any') = -1
|
|
concat.length = 1
|
|
foo,bar,x,y,34,sss,3,4,2
|
|
Array.length = 1
|
|
NaN,NaN,NaN
|
|
3
|
|
1
|
|
number
|
|
1
|
|
|
|
hello,world
|
|
,,,,
|
|
undefined
|
|
[object java.lang.Object]
|
|
|
|
33
|