What is the output of the following JavaScript code?…

PYQ IBPS SO CRP SPL-XV (2025)

What is the output of the following JavaScript code?

console.log(parseInt("10.5") + parseInt("5.7") + "2");
  1. A.

    152

  2. B.

    17.7

  3. C.

    16.2

  4. D.

    152.7

  5. E.

    NaN

Attempted by 32 students.

Sign up free to check your answer

Sign up free

Explore the full course: Ibps So It Mains

Loading lesson…