var img = new Image();
Not much happens when you run this code. All we are doing is creating a new image object named img. To prove this, we can count the number of images in the document both before and after we created the new image object. Here’s how to do it:"