log10intermediate// Logarithm base 10
Math.log10(100) // β 2
Math.log10(1000) // β 3Use Math.log10() to compute the base-10 logarithm, useful for magnitude comparisons or decibel calculations.
Returns the base-10 logarithm of a number.
Challenge: Observe that Math.log10(-1) returns NaN since the base-10 log is undefined for negative numbers.