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.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.