Javascript sandbox

Hi all, I’m trying to figure out how to change the Javascript sandbox so that it displays the result of my code. I didn’t realise this was possible 'til I saw a post from a Reddit user who had changed the preferences to display the result of his code:

Unfortunately, he doesn’t say how he made this change, I’ve looked up and down the Settings page and I can’t figure out how to change it, any help would be much appreciated.

That’s done by the console.log(myArray); call in the code.

Yes console.log is used to display variables , arrays , objects etc.

See this

Welcome, there.

You might find it useful to do a few of the challenges in this section, before continuing:

Hope this helps