how to access first two digits of a number : I want to access first two digits of a number, and i have used sub string/sub str/slice none of them is working its throwing error like sub string is not defined 

 render() {

        let trial123 = this.props.buildInfo["abc.version"];

        var str = trial123.toString();

        var strFirstThree = str.substring(0,3);

        console.log(strFirstThree);
....
}
i have tried above code



output of(above code) 
trial123=19.0.0.1

i need only 19.0 

how can i achieve this?

