changed conditional to store the answer and added a seperate console log to output the final statement