Garrett (garote) wrote,
Garrett
garote

An interesting interview question

This morning in the shower I came up with this question for interviewing a web developer: "How many ways can you come up with, to draw a circle in a web browser?"

Here's my list:
  1. Declare a canvas element and draw a circle on it using JavaScript.
  2. Construct one artificially in HTML from scaled table segments.
  3. Use inline SVG code to describe a circle inside a div.
  4. Embed an object - Java, Flash, video, etc - and draw a circle using that.
  5. Print a unicode character of a circle, really really large.
  6. Reference an image of a circle, in HTML or in an associated stylesheet.
Any I missed?
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments