js通过 document.getElementById("box")如何知道这个元素具体是什么标签?

let box = document.getElementById("box")

box.nodeName或box.tagName //返回大写字符串:DIV/IMG...