javascript check for not null October 26, 2022 by Tarik this will do the trick for you if (!!val) { alert("this is not null") } else { alert("this is null") }