var bound = ee.Geometry.Polygon([
[[35.96060746534647,33.815740435596645], [36.00472443922342,33.815740435596645], [36.00472443922342,33.85366939280121], [35.96060746534647,33.85366939280121], [35.96060746534647,33.815740435596645]]
]);
var bandIn = ['B2','B3','B4','B5','B6','B7'];
var bandOut = ['blue','green','red','nir','swir1','swir2'];
//Example images of S2 and L8
var imgS2SR = ee.Image('COPERNICUS/S2_SR/20181107T082129_20181107T082732_T36SYC').select(bandIn,bandOut).clip(bound);
var imgL8SR = ee.Image('LANDSAT/LC08/C01/T1_SR/LC08_174036_20181107').select(bandIn,bandOut).clip(bound);
//check projection of B4(red) bands
print('S2 CRS:', imgS2SR.select('red').projection().crs());
print('L8 CRS:', imgL8SR.select('red').projection().crs());
// Reproject and rescale L8 image according to S2. Keep the system:time_start in metadata
var L8SR_10m = imgL8SR.resample('bicubic').reproject({
crs: imgS2SR.select('red').projection().crs(),
scale: 10
}).set('system:time_start',imgL8SR.date());
Map.centerObject(bound,12)
var visParams = {bands: ['red','green','blue'], min:0, max: 3500};
Map.addLayer(imgL8SR, visParams, 'imgL8SR 30m');
Map.addLayer(imgS2SR, visParams, 'imgS2SR 10m');
Map.addLayer(L8SR_10m, visParams, 'l8SR 10m');