JavaScript OnClick Display нет

/* ---- Answear ---- */
document.getElementById("element").style = 'display: none'

/* ---- Description ---- */
/* Grab element with id of "element" */
// document.getElementById("element") 

/* Grab style attribute for our element */
// document.getElementById("element").style

/* Change style attribute for our element */
// document.getElementById("element").style = 'display: none'
Enchanting Echidna