I want to use dynamic base for logarithm in JavaScript.
ex: logarithm
number 16andbase 5then 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));