← Back to JavaScript exercises

51. Armstrong Number

Result appears here
const n=28;output.textContent=[1,2,4,7,14].reduce((a,b)=>a+b,0)===n;