DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
get first 2 digits of number javascript
const trial = "19.0.0.1" console.log(trial.split(".").slice(0, 2).join(".")) // 19.0
PREVIOUS
NEXT
Tagged:
#digits
#number
#javascript
ADD COMMENT
Topic
COMMENT
Name
3+9 =
Submit