How can I get only last 4digit of from a Variable which has 10digits ? Help

Hello! Community, Am stuck while trying to make a bot. I was trying to past the last 4digit of a number which i already saved as a veriable name "Phone number" Which has 10 Digits but i want to take the last 4digit! how do i do it?

@afridymhamude1 said in How can I get only last 4digit of from a Variable which has 10digits ? Help:
Hello! Community, Am stuck while trying to make a bot. I was trying to past the last 4digit of a number which i already saved as a veriable name "Phone number" Which has 10 Digits but i want to take the last 4digit! how do i do it?
If you want to get the last 4 digits of a 10digit number, you can do it like this:
[[10_DIGIT]].slice(4)

@Fox It worked but i am facing this lunching issue