Last digit of the power of 2 numbers without performing the operation in javascript : <p>I would like to know how to find the units digit of a number raised to another number without calculating the result of the operation, i.e 5**7 = 78125, so I want to write a function that returns 5 as the last digit of the operation.</p>
