How to get the length of an array in Node.js

1 Answer

0 votes
const arr = ["NodeJS", "TypeScript", "PHP", "C", "C++", "PHP"];
  
console.log(arr.length);
 
 
 
 
  
/*
run:
  
6
  
*/

 



answered Jul 16, 2022 by avibootz

Related questions

1 answer 109 views
1 answer 128 views
1 answer 137 views
2 answers 135 views
...