How to find length of a string in JavaScript

1 Answer

0 votes
const str = "javascript";

const length = str.length;

console.log(length); 


  
    
    
/*
run:
    
10
    
*/

 



answered Jun 4, 2021 by avibootz
...