COuld someone change this line of code to java script please if it is possible?

i have a line of code from my other game but desided to do it differntly but i only new how to do it in java script but i need this line of code to be java script so it will work. so could somone change it for me please

Vector3 snappedV3 = new Vector3(Math.Round(oldV3.x),Math.Round(oldV3.y),Math.Round(oldV3.z));

var snappedV3:Vector3 = new Vector3(Mathf.Round(oldV3.x),Mathf.Round(oldV3.y),Mathf.Round(oldV3.z));

sorry put the wrong one its this one

Vector3 G = new Vector3(Mathf.Round(hit.point.x), Mathf.Ceil(hit.point.y), Mathf.Round(hit.point.z));