DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+4 =
Submit