Skip to main content

Accepted Answer · #60 · 2026-06-03

Which answer is correct?

Difficulty 1/3

How to play

Read the Stack Overflow–style question, then pick the one correct answer from four plausible options. Watch out — wrong answers often have high fake votes.

How to convert a string to a number in JavaScript?

I have a string `"42"` and need the number `42`. What's the most reliable method?

javascriptconversionnumbers

Loading your progress...

Press 1 through 4, or tap a numbered choice, to answer. Back to hub