Loading…

How can you do a character count in Javascript?

To perform a character count in JavaScript, use the following syntax:

var str = "Hello World!";

var n = str.length;

Suggest An Answer

No suggestions avaliable!

Latest post from JavaScript interview questions

Ask Question