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 184 views
1 answer 210 views
1 answer 239 views
2 answers 246 views
...