How would you set an element's CSS display property to "none" with JavaScript?

element.style.display = "none";

Every element has a style property, that can be used to change element's CSS properties.