console log to print in text box.

I’m trying to do a magic 8 ball/fortune telling program on wix. I have the code in wix and when I try in preview it prints in the developers console. I would like the console log to show in a text box. How do I do that.

Sure!

$w('#YourButton').onclick( () =>  {
  
    $w('#yourTextBoxHere').text = ""; 

});