Report question

Question: how to output a string to variable and console at the same time