WEBVTT

1
00:00:00.000 --> 00:00:02.400
replaced nameInput with messageTextArea.

2
00:00:03.450 --> 00:00:07.800
While this is fine,
we have some repetition in our code.

3
00:00:07.800 --> 00:00:12.930
We have the focus handler twice and
the blur handler twice.

4
00:00:15.527 --> 00:00:19.386
We can remove the repetition by
moving these event handlers into

5
00:00:19.386 --> 00:00:21.200
functions with names.

6
00:00:21.200 --> 00:00:25.754
I'll create two variables,

7
00:00:25.754 --> 00:00:30.000
const focusHandler and const blurHandler.
