JS, jak poznać numer Laster liczby
getLastDigit = num => + (num + '').slice(-1);
console.log(getLastDigit(12345))
moghaazi
getLastDigit = num => + (num + '').slice(-1);
console.log(getLastDigit(12345))