isInteger

Modified on Mon, 21 Aug 2023

Description

Use this function to check if a value is an integer.

Syntax

isInteger(value)

Returns

Return ValueDescription
True/FalseReturns true if the given value is an integer and false otherwise.

Sample

ExampleResultDescription
isInteger(12)trueReturns true if the given value, 12, is an integer.
isInteger('Hello')falseReturns false if the given value, 'Hello', is not an integer.

To view all the Language functions, click here.