var outputFigure = function(showFigure){
var showFigure = prompt("Input figure name to get numSides!");
return showFigure.numSides;
}
var someObject = {numSides:3};
var outputNumSides = function() {
var obj = prompt('asd');
return window[obj].numSides;
}
document.write(outputNumSides());