Write the domain and the range of the function, f(x) = –|x|.
$|x|$ is defined for all real values.
Hence $-|x|$ is also defined for all real values.
The domain is R.
Range for $|x|$ is $[0, \infty)$
Therefore, range for $-|x|$ is $(-\infty, 0]$.