Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js is variable int

// 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")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #variable #int
ADD COMMENT
Topic
Name
1+4 =