Fundamental data types
Data type (Interface)
Description
References
const table = document.getElementById("table")
const tableAttrs = table.attributes; //Node/Element interface implementation
for(let i=0;i<tableAttrs.length;i++){
if(tableAttrs[i].nodeName.toLowerCase() === "border"){ table.border = "1" }
//HTMLTableElement interface -> border attribute
}
//HTMLTableElement interface
table.summary = "Note, increased border size";Last updated