showing results for - "extract the last number of two digits number js"
Leni
24 Feb 2016
1var sampleNumber = 123456789,
2  lastDigit = sampleNumber % 10;
3console.log('The last digit of ', sampleNumber, ' is ', lastDigit);