不挂科搜题免费

问题:

在JavaScript中,下列哪个方法可以用于将字符串转换为整数?

选项

  • parseInt()

  • toInt()

  • convert()

  • stringToInteger()

  • 答案:

    A