1
00:00:00,210 --> 00:00:05,010
In this lesson, we're going to be in the section, we're going to be looking at how to introduce audio

2
00:00:05,010 --> 00:00:08,910
and use JavaScript in order to start audio files to play.

3
00:00:09,330 --> 00:00:14,780
So this is MP three files, and we're going to also use an array here, adding an event listener is

4
00:00:14,820 --> 00:00:20,760
giving us the user a series of buttons that they can click and each button will play a different sound,

5
00:00:20,760 --> 00:00:21,810
a different audio sound.

6
00:00:22,050 --> 00:00:26,010
So we're using the audio object, audio object in JavaScript.

7
00:00:26,010 --> 00:00:27,570
So defining you audio.

8
00:00:27,690 --> 00:00:32,220
And I've got a little bit of a sneak peek here on the source code that we're going to be using, as

9
00:00:32,220 --> 00:00:35,270
well as updating some of the class values.

10
00:00:35,280 --> 00:00:38,760
So removing and adding classes as the buttons get clicked.

11
00:00:39,330 --> 00:00:40,350
Let's check this one out.

12
00:00:40,590 --> 00:00:42,510
So we've got a line, a cougar and a bark.

13
00:00:42,510 --> 00:00:45,420
You click it and you hear a sound click.

14
00:00:45,420 --> 00:00:46,620
It hears sound click.

15
00:00:46,620 --> 00:00:47,370
It hears sound.

16
00:00:47,490 --> 00:00:50,880
I've got my audio turned off, but the audio is playing in the background.

17
00:00:51,180 --> 00:00:52,440
So go ahead and try this one of.
