Created
January 30, 2022 17:50
-
-
Save K-Vishwak/ce26a626b4af6aa8efe64974a212c48b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const num = 10.547; | |
const num1 = -10.547; | |
console.log(Math.abs(num)); // 10.547 | |
console.log(Math.abs(num1)); // 10.547 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment