1
00:00:00,810 --> 00:00:06,660
I called this one the Magic eight ball and really not a whole lot of magic going on, just some JavaScript

2
00:00:06,660 --> 00:00:07,530
behind the scenes.

3
00:00:07,740 --> 00:00:14,790
And the objective here is to input a question into the input field and then get a random response being

4
00:00:14,790 --> 00:00:18,230
returned back via JavaScript and then outputting it on the page.

5
00:00:18,480 --> 00:00:25,170
So it's using an array as well as an event listener and math in order to select an item randomly from

6
00:00:25,170 --> 00:00:27,780
the array in order to provide the response.

7
00:00:27,940 --> 00:00:34,170
So the objective here is to get more familiar with random and making random selections from the array,

8
00:00:34,290 --> 00:00:38,520
as well as updating the output within HTML.

9
00:00:38,700 --> 00:00:43,500
Let me show you so we can ask ourselves the question, how will you like this?

10
00:00:43,770 --> 00:00:46,890
And we say highly likely.

11
00:00:47,040 --> 00:00:49,510
So there's a random response coming from an array.

12
00:00:49,650 --> 00:00:52,470
Sometimes it's not really exactly with the question.

13
00:00:52,620 --> 00:00:57,930
But again, the objective here is to become more familiar with arrays and getting random values from

14
00:00:57,930 --> 00:01:03,180
arrays and also taking inputs that are being added in by the user.
