How to get the length of an array in TypeScript

1 Answer

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

 



answered Jul 16, 2022 by avibootz
...