first 10 digit in javascript code example
Example: get first 2 digits of number javascript
const trial = "19.0.0.1"
console.log(trial.split(".").slice(0, 2).join("."))
// 19.0
const trial = "19.0.0.1"
console.log(trial.split(".").slice(0, 2).join("."))
// 19.0