reverse a number in javascript
const num = 3849;
function reverseGivenInteger(num) {
return Number(String(num).split('').reverse().join(''))
}
console.log(`Reversed integer is: ${reverseGivenInteger(num)}`)
reverse a number in javascript
const num = 3849;
function reverseGivenInteger(num) {
return Number(String(num).split('').reverse().join(''))
}
console.log(`Reversed integer is: ${reverseGivenInteger(num)}`)
Javascript Reverse
const friends = ["Abir", "Ashik", "Alif", "Alfi", "Shafi", "Kafi"];
const friendsReverse = friends.reverse();
console.log(friendsReverse);
//Output:[ 'Kafi', 'Shafi', 'Alfi', 'Alif', 'Ashik', 'Abir' ]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us