diff --git a/02_Day_Data_types/02_day_data_types.md b/02_Day_Data_types/02_day_data_types.md index 198ae2b..0e82901 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -231,7 +231,16 @@ console.log(Math.E) // 2.718 console.log(Math.log(2)) // 0.6931471805599453 console.log(Math.log(10)) // 2.302585092994046 +// Returns the natural logarithm of 2 and 10 respectively +console.log(Math.LN2) // 0.6931471805599453 +console.log(Math.LN10) // 2.302585092994046 + +// Returns the natural logarithm with base 10 of x, Math.log10(x) +console.log(Math.log10(2)) // 0.3010299956639812 +console.log(Math.log10(10)) // 1 + // Trigonometry +// Returns the value in radians Math.sin(0) Math.sin(60)