Https://www.codecademy.com/paths/web-development/tracks/getting-started-with-javascript/modules/learn-javascript-introduction/lessons/introduction-to-javascript/exercises/libraries

https://www.codecademy.com/paths/web-development/tracks/getting-started-with-javascript/modules/learn-javascript-introduction/

lessons/introduction-to-javascript/exercises/libraries

what is this methode ?

Hello,

You used log1p, which is:

The Math.log1p() function returns the natural logarithm (base e ) of 1 + a number, that is

∀x>-1,Math.log1p(x)=ln(1+x)

You only need to check if a number is an integer. Did you try looking it up on Google?

yes,I did but I did’t find a directly answer

Really?

https://www.google.com/search?q=javascript+find+integer

1 Like