I have the following JS Problem. If i try to convert an array of strings using the parseInt function as a mapped function with the Array.map method, i experienced this strange result. What is wrong here?
console.log(['1','1'].map(parseInt))
Returns a strange Array containing the following:
[1, NaN]
Is parseInt not a regular function?