<!DOCTYPE html>
<html>
<body>
<h2>My First JavaScript</h2>
<script>
//reverse the number
const reerseNumber = (n) =>{
return parseInt(n.toString().split('').reverse().join(''));
}
alert(reerseNumber(500));
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h2>My First JavaScript</h2>
<script>
//reverse the number
const reerseNumber = (n) =>{
return parseInt(n.toString().split('').reverse().join(''));
}
alert(reerseNumber(500));
</script>
</body>
</html>
0Comments
Thanks you for commenting your questions. I will see question and respond you.