Difficulty: Hard
Average Score: 40%
Given the following JavaScript code:
var n1 = 10;
var n2 = "20.39";

Which function should a developer use to convert the content of the variable `n2` from a string to a number while keeping the decimal places?

Report an Issue

Help us improve by flagging this content.

Rate this Practice Test

How helpful was this material?

Chat on WhatsApp