So, I was getting bored of making websites and then I decided to make a chrome extension.
The folder structure
The Manifest file
This file is a special file. It contains the information about the chrome extension. It is a .json type file.
It must mandatorily contain:
1.The Manifest version
2.The name of the extension.
3.The version of the extension.
The HTML file
A container div and an unordered list for the list of jokes.
The JavaScript file
Here is our main logic. Here, we request data from an API and parse it into required state. We dynamically create new list item and put these data into it.
The CSS file
So, that's it for the code and here's the result
Thanks for your time.
Top comments (0)