Home > Article > Web Front-end > js-undefined type judgment
The content shared with you in this article is about js-undefined type judgment. Friends in need can refer to it
if (reValue== undefined){ alert("undefined"); }
if (typeof(reValue) == "undefined") { alert("undefined"); }
typeof Return is a string, there are six possibilities: "number", "string", "boolean", "object", "function", "undefined"
The above is the detailed content of js-undefined type judgment. For more information, please follow other related articles on the PHP Chinese website!