It's been a while since I wrote a good entry, but this one was particularly worthy of posting! I was trying to find out how to check if a variable is an integer (or if a variable is not an integer) in javascript! Welp, after reading through a wide variety of mind bendingly complex solutions, the simplest one came up...
The solution is .isNaN() . You can use this to check if something is NOT a number, and by sheer virtue If Else, if it is not a number, the else IS if it's a number.
var test1="500";
var test2="something interesting";
alert(isNaN(test1));
alert(isNaN(test2));
great blog
great blog
I appreciate the great author
I appreciate the great author writings about this club read. It is great to have to be able to go through a quality article with useful information on issues that a lot are engaged on. seo I acknowledge with your results and will consistently look send to your upcoming messages.
I used to be more than happy
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post.
70-685 braindumps
312-50 braindumps
VCP-310 braindumps
350-030 braindumps
Post new comment