You are given a data variable that contains a string. You need to perform some manipulations in order to get the number inside the string when substituting in the parseFloat() function.
Builtin JS Functions
String conversion
Report a typo
Write a program in JavaScript
let data = 'word_123something_other_word'
console.log(parseFloat(...)) //replace the ellipsis with the desired value
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.