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 112 views
1 answer 130 views
1 answer 142 views
2 answers 142 views
...