Is the Number Symmetrical?

Published by Pickle in

Create a function that takes a number as an argument and returns true or false depending on whether the number is symmetrical or not. A number is symmetrical when it is the same as its reverse.

Examples

IsSymmetrical(7227) ➞ true

IsSymmetrical(12567) ➞ false

IsSymmetrical(44444444) ➞ true

IsSymmetrical(9939) ➞ false

IsSymmetrical(1112111) ➞ true

Notes

N/A

Watch a quick demo on how Edabit works.