SITK- Pie Shop – Javascript – placing console log outside the block

SITK- Pie Shop - Javascript - placing console log outside the block