Return coordinates of mouse click?

Ok, I have run into a rather annoying problem.
I have never been very good at raycasting, especially with mouse clicks.
I am trying to return the coordinates of the collision with a mouse raycast to a collider.

I have everything after that, but I am struggling to get the coordinates to return.
Could someone please point me in the right direction, or give me an example?

Many thanks

js only

As this example shows once you got the RaycastHit output from the Raycast, you can access the point variable, which represents the world space coordinates of the raycast hit.