count array in jquery code example
Example 1: jquery count elements
var count_elements = $('.class').length;
Example 2: jquery get number of elements in array
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.length;
Example 3: javascript size array
let array = [1, 2, 3];
console.log(array.length);