Find Shortest distance by JavaScript [closed]

Two integers m and n, where m represents the distance travelled in North direction and n represent the distance travelled bin east direction with single space between them. Display the shortest distance from the house to destination.

Example:
Input
3 4

Output
5.00

My code:

function getshortestDist (inputdist) {
let  inputstring1= inputdist[0];
let  inputstring2= inputdist[1];
var distance =Math.sqrt(Math.pow(inputstring1, 2) +Math.pow(inputstring2, 2)) ;
return distance;
}
var inputdist=process.openStdin() ;
var distance = getshortestDist (inputdist);
console.log(distance.tofixed(2));

MY question I didn’t get any results
3 4 showing me NaN, where I have mistaken?