I have imported my shapefile into GEE which is in my assets folder as a table. I extracted the shape from the table using this code:
table = table.geometry();
Map.centerObject(table);
Map.addLayer(table, {color: 'red'}, 'table');
This allows the shape to be visible but remains a layer and not geometry. I want to be able to have the shapefile in my assets readily available to import as geometry as the code I need to run requires the shape to be a geometry.
Best Answer
Shapefiles in GEE are registered as tables, if you want it to be a geometry just add the following (I named it studyArea but you can keep the name table if that suits you):