String conversion

Report a typo

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.

Write a program in JavaScript
let data = 'word_123something_other_word'


console.log(parseFloat(...)) //replace the ellipsis with the desired value
___

Create a free account to access the full topic