Using Javascript parseInt() and a Radix Parameter

后端 未结 3 2000
梦毁少年i
梦毁少年i 2020-12-06 16:30

Can anyone explain how the parseInt() functions works and what the Radix Parameter is?

As a case study, I am trying to get to grips

3条回答
  •  感动是毒
    2020-12-06 16:46

    In the ECMA Script 5 when the string starts with 0 and no radix is specified the default behavior is decimal (as opposed to the earlier versions in which it was octal)

    Source: parseInt() on Mozilla Developer Network

提交回复
热议问题