JSFiddle - React, Tailwind, and code Playground

HTML

<img src="http://i.imgur.com/FtpT8bT.png" alt="">

JavaScript

let img = document.querySelector('img')

for(let propertyName in img) {
	let value = img[propertyName]
  console.log(propertyName, ':', value)
}