|Author:||Elfrieda Sporer PhD|
|Published:||19 January 2014|
|PDF File Size:||44.59 Mb|
|ePub File Size:||28.67 Mb|
|Uploader:||Elfrieda Sporer PhD|
There are a couple ways we can use to empty an array, so let's discuss them all. This is recommended if you don't have references to the original array arrayList anywhere else, because it will actually create a new, empty array.
You should be careful with this method of emptying the array, because if you have referenced this array from another variable, then the original reference array will remain unchanged.
Therefore, this method is useful when you want to update all reference variables pointing to arrayList. This way of emptying the array will also update all the references to the original array. Question 7 How do you check if an object is an array or not?
- What is Next ?
An anonymous function allows a developer to create a function that has no name. In other words, anonymous functions can be used to store a bit of functionality in a variable and pass that piece of functionality around.
The callback function is a mechanism to send one function to another function as an argument; i.
But, when used outside a function, it refers to the window object.
All the elements or nodes are part of window. Using BOM interaction with a browser is possible. Default object of the browser is a window.