Problem: Build a simple live character counter using plain JavaScript. A user types into a textarea. Below it, show the number of characters remaining out of a max limit (say, 100). When limit is exceeded, show the counter in red and disable further typing.

Remaining limit :