1
00:00:00,240 --> 00:00:05,640
We've gone through a few games recently in the earlier sections, and this one is going to be going

2
00:00:05,640 --> 00:00:11,070
into, again, more of a utility type function with JavaScript, where we've got an input, feel that

3
00:00:11,070 --> 00:00:16,380
we want to count how many characters are still available within the input field and how many characters

4
00:00:16,380 --> 00:00:17,250
are added in there.

5
00:00:17,490 --> 00:00:23,340
And then if there's a limit, if we only want 10 characters, then we're going to output a message whenever

6
00:00:23,340 --> 00:00:27,960
we detect that the character count is above what is allocated for the input field.

7
00:00:28,230 --> 00:00:30,630
So this is a relatively simple application.

8
00:00:30,750 --> 00:00:37,140
And the objective here is to get more familiar with string that variables and string methods, as well

9
00:00:37,140 --> 00:00:45,240
as using input fields and text areas and dynamically updating and changing messaging for those inputs.

10
00:00:45,270 --> 00:00:46,160
So let's try this out.

11
00:00:46,710 --> 00:00:51,810
So I've got my input field and I can type in and I can see how many characters I have left.

12
00:00:52,020 --> 00:00:58,080
I can also see that once I try to go over the allocated amount of characters, JavaScript is going to

13
00:00:58,080 --> 00:01:00,140
prevent that from entering into the field.
