0

Lambda challenge question

Hey guys I need help with a challenge The code is Function getDigitCount(num) { } Console.log(getDigitCount(246), I’m having a brain fart I believe I need .length

10th Nov 2019, 4:41 AM
William R. McPherson III
William R. McPherson III - avatar
3 odpowiedzi
0
Please edit your question and specify the language in question tags, is it JavaScript?
10th Nov 2019, 5:38 AM
Ipang
0
yes its javascript
10th Nov 2019, 5:47 AM
William R. McPherson III
William R. McPherson III - avatar
0
function getDigitCount(v) { return ("" + v).length; } P.S. You should add JavaScript to your question tags instead 👍
10th Nov 2019, 6:14 AM
Ipang