function is_binary_representation_of_number_palindrome(num) {
let binary = num.toString(2);
console.log(binary);
return binary == [...binary].reverse().join('');
}
const num = 153;
if (is_binary_representation_of_number_palindrome(num)) {
console.log("Palindrome");
} else {
console.log("Not Palindrome");
}
/*
run:
10011001
Palindrome
*/