📜  js 是变量 int - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:10.096000             🧑  作者: Mango

代码示例2
// The === operator is used for checking
// the value and the type of a variable

var data = 1;

if (data === parseInt(data, 10))
    alert("data is integer")
else
    alert("data is not an integer")