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

var str = "Hello World!";

var n = str.length;

Suggest An Answer

No suggestions Available!