JavaScript erhalten mehrere Attribute

var t = document.getElementById("testId");

var {className, id} = t;

console.log(className, id)
Jerome Scott