Not bad, not bad.
What we can do next is maybe set up clear list functionality since it's going to be the fastest one.
Now, before we do that, though, why don't we also alert over here when we're adding new items?
So what I could say here, instead of this comment, I can call my show alert and then what kind of
values we would want to pass in.
Well, first, of course, I would want to show the alert so shown to be true.
I got it.
Then we're going to pass in success since that is going to be our second class that we can display.
And then we have some kind of text.
As far as the text, I'm going to go with item.
Added to the list, to the list, let's say it to start going to type some gibberish, I'm going to
press on the IS now have my word and in three seconds it goes away.
And now let's deal with the clear list functionality where I would want to set up a function in seconds.
And that is equal to a clear, clear list is our function.
And I'm not going to be looking for any arguments.
I'm just going to alert.
So I'm going to say, hey, listen, you are deleting the items, so tomorrow will be for my show.
Then the class name will be Danger and then I'm going to be setting up the text of empty and then w
and we already know that if we want to wipe out all the values, which is code set list.
And then we set it equal to an empty array and that when we would want to call it well, when we click
on Clear Items button, correct.
So we go on click and then we just have clear, of course, what was the normal function.
So a clear list.
My dad forgot my function name are list.
And of course, let's add the jibberish and there it is.
Now we have clear items.
So what can happen is I can click and now of course I can empty the list.