Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to create an array in javascript

let fruits = ['Apple', 'Banana']

console.log(fruits.length)
// 2
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #create #array #javascript
ADD COMMENT
Topic
Name
3+1 =