Integers in JavaScript

后端 未结 5 2086
伪装坚强ぢ
伪装坚强ぢ 2020-12-01 11:25

I\'m a beginner to Javascript so forgive me if I sound dumb because I learned some Javascript from W3Fools (which are really difficult tutorials - they don\'t explain anythi

5条回答
  •  旧巷少年郎
    2020-12-01 11:38

    If you really need to use integers, just use the floor method on each number you encounter.

    Other than that, the loose typing of Javascript is one of it's strengths.

提交回复
热议问题