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 177 views
2 answers 354 views
1 answer 194 views
194 views asked Feb 8, 2020 by avibootz
1 answer 183 views
1 answer 181 views
...