I closed the chat I wasnt able to find it anymore.
EDIT: Found it check pm
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 10-digit number, you can do it like this:
[[10_DIGIT]].slice(-4)
