Created
September 6, 2020 13:35
-
-
Save srezasm/279f610b3c4d5dfa05ca24e0a5d1cc16 to your computer and use it in GitHub Desktop.
remove last digits
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 int = 1553 / 10 | 0; | |
console.log(int); | |
// Result: 155 | |
console.log( | |
typeof int | |
) | |
// Result: number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment