The following code creates an Array object letters with elements a, b, and c. The order of the array elements is then reversed using the reverse() method to produce the array [c, b,a].
Ejemplo El siguiente código crea un objeto Array letters con los elementos a, b y c. El orden de los elementos de la matriz se invierte con el método reverse() para generar la Versión del lenguaje
The following code creates an Array object names with the string element Bill.
El siguiente código crea un objeto Array names con el elemento de cadena Bill.
The following code creates an Array object specialChars with elements (,), -, and a blank space and then creates a string containing (888) 860-0000.
El siguiente código crea un objeto Array myArr con los elementos one, twoy three y, a continuación, una cadena que contiene espacio en blanco y, a continuación, crea una cadena que contiene (888) 860-0000.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.