I am just starting to learn Javascript and I immediately got confused by seemingly contradictory statements in Mozilla\'s A re-introduction to JavaScript (JS tutorial).
I believe questioner has already found his/her answer. But for others like me, you can check number is integer or not in JavaScript by using Number.isInteger() method.
MDN