Answers for "array[0]"

0

array[0]

let words = [
   'p',
   'l',
   'o'
];
console.log(words[0])
//always prints the first number in the array
//output will be 'p'
//if we wrote 1 instead of 0 it would print out 'l'
Posted by: Guest on September-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language