So, this is my code.:
var dataset = ee.ImageCollection('USDA/NASS/CDL')
.filter(ee.Filter.date('2018-01-01', '2019-12-31'))
.first();
var cropLandcover = dataset.select('cropland');
var cultivated = dataset.select('cultivated');
Map.setCenter(-100.55, 40.71, 4);
Map.addLayer(cropLandcover, {}, 'Crop Landcover');
Map.addLayer(cultivated, {}, 'Cultivation');
I want to use one of the Image Properties, cropland_class_values, so it only shows the parts of the image that have a cropland_class_values value of 1, so it only shows crop cover for corn, which has a cropland_class_values value of 1.
Here is the Cropland Image Collection from the catalog: https://developers.google.com/earth-engine/datasets/catalog/USDA_NASS_CDL