I want to use dynamic base for logarithm in JavaScript.
ex: logarithm
number 16
andbase 5
then output should be1.722706232
How to archive this using JavaScript?
I know how to archive this for base 10. Here is the code for number 16
and base 10
console.log(Math.log10(16));