JSFiddle - React, Tailwind, and code Playground

HTML

Click the below button and check all properties related to image in 'console' window 
<img />
    
    <input type="button" value="click "  onclick="check()"/>

JavaScript

function check() {
     
            var image = document.getElementsByTagName('img');
            var ab = Object.keys(image[0]);
            for (var i = 0; i < ab.length; i++) {
               console.log(i +") "+ ab[i]);
            }
        }