How to extract last(end) digit of the Number value using jquery.
because i have to check the last digit of number is 0 or 5. so how to get last digit after decimal point
var toText = test.toString(); //convert to string
var lastChar = toText.slice(-1); //gets last character
var lastDigit = +(lastChar); //convert last character to number
console.log(lastDigit); //5