What is the index of the element containing String "Saturday"? 15 2 3 Creating arrays and assigning values to their elements There are a number of different
Il faut le transcompiler (ou transpiler) en JavaScript file ts transpiler file js array pour les tableaux non-statiques (taille variable)
Map : collection qui exige une clé unique pour chaque élément set(index, object) : remplace la valeur de l'élément d'indice index de la liste par object
any name used as property name that is not a string is stringified via toString(), even numbers, so 1 becomes "1" • Arrays in JavaScript are just objects
Everytime you use a string JavaScript convert the string into a temporary String object ECMAScript 5 defines 9 new array methods for iterating, mapping,
Objects in js are more like maps/dictionaries than Java objects ○ Again the The split method splits a string into an array of
JavaScript code from a String object import javax script *; Given a JavaScript array, you can convert it to a Java array using the Java to() method
In many programming languages, strings are immutable Recall that JS arrays are modeled as objects The Array shift method is not efficient
Q 10 - Which of the following function of Array object joins all elements of an array into a string? A - concat B - join C - pop D - map