How to count characters in a string in JavaScript

How to count characters in a string in JavaScript