Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
My algorithm: function isInteger(x){ var is_number = typeof x == "number"; var is_not_a_float = String(x).indexOf('.') == -1; return is_number && is_not_a_float; }
31st Oct 2019, 8:44 AM
Jalaj Kumar
Jalaj Kumar - avatar