Something Like that:
reverse age in Javascript
add this JS code.
JS
function reverseAge(para){ para = para + ''; return para.split('').reverse().join(''); } document.write(reverseAge(23));
[codepen_embed height=”265″ theme_id=”0″ slug_hash=”aYLRgX” default_tab=”js,result” user=”pradeepanvi”]See the Pen reverse age in javascript by Pradeep Kumar (@pradeepanvi) on CodePen.[/codepen_embed]
You can check console.