JSFiddle - React, Tailwind, and code Playground

by domenlightenment

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<!DOCTYPE html>
<body>

<a href="#">Hi</a>

</body>
</html>

JavaScript

//get reference to element node object
var nodeAnchor = window.document.querySelector('a');

//create props array to store property keys for element node object
var props = [];

//loop over element node object getting all properties & methods (inherited too)
for(key in nodeAnchor){
    props.push(key);   
}

//log alphabetical list of properties & methods
console.log(props.sort());