Javascript – Common methods for Build-in classes

Javascript – Common methods for Build-in classes

Date Array You can also define an array var a = new Array(); or with initial values: var a = new Array(11, 22, 33, 44); if you put only one argument then you specify the length of the array: push(element) – add a new array element at the end pop() – deletes the last element join(char) – joins all the elements of an array with the character you specify and return it as a string splice(start, end) – removes elements splice(start, howMany to removed, newElement, newElement…) – you can replace…

Javascript – Common methods for Build-in classes Read More