Convert an array of strings to array of numbers | codewars 7kyu | javascript

Опубликовано: 23 Май 2026
на канале: BINARY LIFE 1100
1,297
8

Convert an array of strings to array of numbers | codewars 7kyu | javascript

kata = https://www.codewars.com/kata/5783d8f...

DESCRIPTION:
Some really funny web dev gave you a sequence of numbers from his API response as an sequence of strings!

You need to cast the whole array to the correct type.

Create the function that takes as a parameter a sequence of numbers represented as strings and outputs a sequence of numbers.

ie:["1", "2", "3"] to [1, 2, 3]

Note that you can receive floats as well.