Enjoy 20% off all plans by following us on social media. Check out other promotions!
Front End System Design Guidebook

Poll Widget

Premium
Difficulty
Easy
Recommended duration to spend during interviews
30 mins
Users completed

Question

Design a poll widget that can be easily embedded on websites, such as articles and blogs to allow website viewers to vote on options.

Poll Widget Example

Requirements

  • 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.

Premium Question

Purchase premium to unlock full access to the question including high quality solutions and companies which ask this question.