In this Tutorial we want to describe you a code that makes you easy to understand in an Array Empty. For this example we are using Java Scripting language. The code illustrate on loading a page invoke a function display ( ),this include the variable array that is used to instantiate an array object .The if clause evaluate ,incase the length of array is less than1,then document. write print an Array is empty. An array object hold the various element accessed by indexes -.The for loop execute and run the script till the variable i is less than the array length. Finally the document. write print the element after adding.
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Array Empty
Post your Comment