isFinite() and isInteger() methods in Javascript
isFinite() and isInteger() methods in JS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test Page</title>
</head>
<body>
<script type="text/javascript">
var first = 100;
var sec = false;
var b = Number.isInteger(first);
var c = Number.isFinite(first);
var d = Number.isInteger(sec);
var e = Number.isFinite(sec);
console.log(b);
console.log(c);
console.log(d);
console.log(e);
</script>
</body>
</html>
Comments
Post a Comment
I WOULD APPRECIATE IF YOU LEAVE A COMMENT OR YOUR FEEDBACK HERE !!!