I have a bunch of numbers coming back from an api. It looks like this
1,2,3,4,5,6
Now i'm only wanting the last digit to be displayed rather than all of them.
How would i go about doing this? I need to add .slice
on the end but im not sure what to put in the ()
Thanks Sam