The isInt() function returns a Boolean value that is true if the value
parameter can be converted into an integer by the parseInt() function,
and false if not.
Syntax
n = Lang.isInt(value)
Part
Description
n
The Boolean value returned from the function
value
Any value
Example
var a = Lang.isInt("576");
var b = Lang.isInt("-576");
var c = Lang.isInt("6.5");
var d = Lang.isInt("@13");
var e = Lang.isInt("hello");
W3Schools provides material for training only. We do not warrant the correctness of its contents.
The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our
terms of use and
privacy policy.