EasyRecommended duration to spend during interviews
30 minsUsers completed
Design a poll widget that can be easily embedded on websites, such as articles and blogs to allow website viewers to vote on options.
- The widget displays the following information:
- A list of options for users to vote on.
- The latest number of votes for each option. This is only shown after the user has submitted a vote.
- The following back end APIs are provided:
- Fetching of the poll results.
- Record a new vote on an existing poll option.
- Remove a vote from an existing poll option.
- It should not require much effort for a website owner to embed a poll widget within their websites.