[Solved] Javascript counting all the characters from a HTML document


Here is a way to get the “huge string” from your document.

var hugeString = document.body.textContent;

Now its your turn to create divs which has odd and even characters.

1

solved Javascript counting all the characters from a HTML document