length is a property of arrays in JavaScript by which we can know the number of elements in an array.
const words = ["Mozahedul", "shahin", "rafiq", "john", "elton"];
const result = words.length;console.log(result);// Result:// 5
const words = ["Mozahedul", "shahin", "rafiq", "john", "elton"];
const result = words.length;console.log(result);// Result:// 5
Post a Comment