Answers for "count javascript"

1

count javascript

const collect = require('collect.js');

const collection = collect([1, 2, 3, 4]);
const x = collection.count();
  
console.log(`Total number of elements are : ${x}`);
// Output: Total number of elements are : 4
Posted by: Guest on August-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language