javascript js drawing code example Example: drawing with javascript var ctx = canvas.getContext("2d");