Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js how to know the laster number of a number

getLastDigit = num => + (num + '').slice(-1);
console.log(getLastDigit(12345)) 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #laster #number #number
ADD COMMENT
Topic
Name
6+4 =