parseInt
2022年5月1日小于 1 分钟
parseInt
Question
What does the code snippet to the right output by console.log
?
Snippet
console.log(['0'].map(parseInt))
console.log(['0','1'].map(parseInt))
console.log(['0','1','1'].map(parseInt))
console.log(['0','1','1','1'].map(parseInt))