HTML5 introduces an element called a “canvas” on which we can use JavaScript to draw. This offers a quick and easy approach to drawing dynamic content. This article will compare this relatively new (and not yet cross-browser compatible) option for drawing to Adobe Flash’s ActionScript 3. JavaScript and ActionScript have common roots as they are both dialects of ECMAScript.
For this article we are going to draw something with a little complexity to better compare the two languages. I have chosen a warning icon I made in Photoshop.