What is the right way to comment null
value in javascript? For example:
/**
* Hides an element.
* @param {String} id - element id (can be {@code null}).
* @returns {undefined}.
*/
function hide(id) {
if (id !== null) {
document.getElementById(id).style.visibility = 'hidden';
}
}
But the tag {@code null}
not working...