In general, a function is given as shown below
The domain of the function consists of the values that x can take in the example above. All the values of x make up all the possible input values, and x is also known as the independent variable.
Therefore, the domain consists of the input values and the values for the independent variable.
On the other hand, the range consists of the values for the dependent variable or the output values.