不挂科搜题免费

问题:

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

选项

  • toString()

  • toInt()

  • parseInt()

  • convertToInt()

  • 答案:

    c