Help understanding Domain and Function

Just looking for help understanding how f(x)=sqrt(x) have the same domain and range. Any help is much appreciated.

You can’t have a negative number inside the square root (radical sign) as per GRE.
The input and output of a square root must always be non-negative.

The domain and range of that function can only be a non-negative number.