Answers for "len of array function"

0

array length

/*
  Array Methods
  - Length
*/

// Index Start From 0 [ 0, 1, 2, 3, 4 ]

let myFriends = ["Ahmed", "Mohamed", "Sayed", "Alaa"];

myFriends.length = 2;

console.log(myFriends);
Posted by: Guest on July-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language