Note: The entire bitmap is loaded regardless of the sizes specified in the constructor. Draw the image on the canvas using the drawImage() function. We use that to load the file from the file system. The src attribute specifies the URL of an image. Then set its attributes like (src, height, width, alt, title etc). Unlike the images, the web browser starts downloading JavaScript files only after the src property has been assigned and the