Here is a basic example using data from the VIIRS collection:
var dataset = ee.ImageCollection('NOAA/VIIRS/DNB/MONTHLY_V1/VCMSLCFG')
.filter(ee.Filter.date('2017-05-01', '2017-07-31'));
var nighttime = dataset.select('avg_rad');
var nighttimeVis = {min: 0.0, max: 60.0};
Map.setCenter(-77.1056, 38.8904, 8);
Map.addLayer(nighttime, nighttimeVis, 'Nighttime');
Because of the date range being passed to the ee.Filter.date() function along with the fact that the VIIRS collection consists of monthly average radiance composite images, the resulting dataset variable will include a list of 3 separate images from the overall collection: '2017-05-01', '2017-06-01', and '2017-07-01'.
When the 'avg_rad' band is selected and then plotted as a single layer, we see that the resulting layer is a greyscale band:
I'm wondering how the Map.addLayer() function resolves the fact that it is using values from 3 different images to create a single band for the resulting layer? For each pixel of the new layer, does it take the mean of the corresponding pixels from each Image i.e. new_pixel_value = (px1 + px2 + px3)/image_count? Or is there some other process going on?