Name: Egor Romanov
Date of birth: 24.04.1997
Telegram: https://t.me/EgoRomanoff
E-mail: egoromanoff@mail.ru
Discord: Egor Romanov (@EgoRomanoff)
I’m Junior Frontend Dev.
I have been in this field for about 2 years. I manly study independently, so I have no problems with mastering new technologies. I am plodding, punctual and try to obtain the best result of my work.
I have no commercial developing experience, but I strive to learn all the subtleties of frontend in order to become a qualified specialist.
CodeWars kata ‘Hidden “Cubic” numbers’
function isSumOfCubes(s) {
let cubicNumbers = s
.match(/\d{1,3}/g)
.filter(elem => {
return (
elem.split('').reduce((res, cur) => {
return (res += Math.pow(+cur, 3))
}, 0) === +elem
)
})
.map(n => +n)
let sumOfCubicNumbers = cubicNumbers
.reduce((prev, cur) => (prev += cur), 0)
return cubicNumbers.length === 0 ?
`Unlucky` :
`${cubicNumbers.join(' ')} ${sumOfCubicNumbers} Lucky`
}