Learn about what is the right way to delete an array in Javascript. Letβs create an Array let array = [1,2,3,4,5]; First way to delete an array isΒ , referencing to a new empty array array = []; Letβs look an example var array1 = [1,2,3,4,5]; var array2 = array1; array1[0] = 100; array2[0]; //100 because …
Continue reading “Different ways and correct way to delete an array .”