Having a little trouble in Javascript on the quiz

I’m a little stuck on 18 & 19 in the JS exercises. I figured out how to complete 18 with just one question. but when I tried multiple questions in the same script, I had to have the 1st question use the “alert” func, while the 2nd question printed to the console. If I had both print to the console, only the 2nd question got printed. Image below. Thank you.