All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rhino1.7.7.testsrc.doctests.test2.doctest Maven / Gradle / Ivy

Go to download

Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users.

There is a newer version: 1.7.15
Show newest version
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

js> a = []

js> a[0] = 10
10
js> a[1] = 11
11
js> a[3] = 13
13
js> a[4] = 14
14
js> a[5] = 15
15
js> a.reverse()
15,14,13,,11,10
js> a.reverse()
10,11,,13,14,15
js> a.concat([16,17])
10,11,,13,14,15,16,17




© 2015 - 2024 Weber Informatics LLC | Privacy Policy