How to computes the base 10 logarithm in JavaScript

1 Answer

0 votes
console.log(Math.log10(100));
console.log(Math.log10(1000));
console.log(Math.log10(5));



/*
run:
     
2
3
0.6989700043360189
   
*/

 



answered Mar 12, 2020 by avibootz

Related questions

1 answer 161 views
2 answers 337 views
1 answer 178 views
178 views asked Feb 8, 2020 by avibootz
1 answer 165 views
1 answer 165 views
...