I want to use dynamic base for logarithm in JavaScript.

> 
> **ex:** logarithm `number 16` and `base 5` then output should be `1.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`

```js
console.log(Math.log10(16));
```