In js we can look up the name of a function
var func1 = function() {}
console.log(func1.name) //prints func1
Can i do the same thing for a boolean?
var myMightyBoolean = true
console.log(myMightyBoolean.name) //prints myMightyBoolean, this doesnt work thus the question
Edit: The following allows for it but only under certain conditions, watch comments below or top answer for more
console.log(Object.keys({myMightyBoolean}).pop())