Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript length of array

// get the length of an array

// define array
let numbers = [10, 20, 30, 40, 50]
let words = ['I', 'Love', 'Javascript']

// call the .length property ( DO NOT USE () after it)

number.length // 5
words.length // 3
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #javascript #length #array
ADD COMMENT
Topic
Name
5+9 =