Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

WHAT IS ARRAY AND HOW TO DECLARE ARRAY ?

// Quas : WHAT IS ARRAY AND HOW TO DECLARE ARRAY ?

// array is a single variable that is used to store different many of elements.

declare Array :
First you have to write var.
then you have to write a meaningful name.
then you have to give an equal sign.
then you have to give a third bracket.
then you have to give a single quotation inter the third bracket. 
then you have to give a element inter the single quotation.
then you have to give a comma. 
then you have to give a semicolon out of the third bracket .

example :
var friendsName = ['habib', 'iqbal', 'shorif', 'asraful', 'rasel', 'arif', 'deader' ];
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #WHAT #IS #ARRAY #AND #HOW #TO #DECLARE #ARRAY
ADD COMMENT
Topic
Name
8+1 =