Answer:
The domain of a function pertains to all the x values
The range of a function pertains to all the y values
So domain and range do not get confused, this can be easily remembered by the order of the how the first letter of the word appears in the English alphabet.
d, domain, goes before r, range
x goes before y
domain = x values
range = y values