Answers for "extract the last number of two digits number js"

0

extract the last number of two digits number js

var sampleNumber = 123456789,
  lastDigit = sampleNumber % 10;
console.log('The last digit of ', sampleNumber, ' is ', lastDigit);
Posted by: Guest on July-28-2021

Code answers related to "extract the last number of two digits number js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language