In this function, it squares every number alone, and to do that it splits the number first.
I don't understand why it has to put '' before num here ('' +num).split('')
let x = (function squareDigits(num){
return Number(('' +num).split('').map(function (val) { return val * val;}).join(''));
}(somenumber))