For this we need to have a html like –

Writing html codes for it. You can find the codes in github

Our first step will be selecting the ul, input & button and store it into variable

Now we are going to add a event on the button.

We need to create an li item for adding the new anime.

We need to add the animeName value inside of that li

Now we just need to add this in our list ul

See the result in browser

Follow for see posts like this!

Other posts of this series can be found here – https://blog.nerdjfpb.com/tag/javascript/

See the codes – https://github.com/nerdjfpb/javaScript-Series

Find me on social media – twitter, linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *