Esthetic numbers: Difference between revisions
Content added Content deleted
(JavaScript added) |
|||
Line 2,615: | Line 2,615: | ||
=={{header|JavaScript}}== |
=={{header|JavaScript}}== |
||
<lang |
<lang javaScript> |
||
function isEsthetic(inp, base = 10) { |
function isEsthetic(inp, base = 10) { |
||
let arr = inp.toString(base).split(''); |
let arr = inp.toString(base).split(''); |