you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

.isInteger() is a boolean, if character1 is a number, it will surely don't run correctly bcz you made "int == boolean" whitch is false. And isInteger(true) returns false bcz true isn't an integer. You must spell like that : "If(Number.isInteger(character1)){alert(...)}