How to click on a cube in the threejs.org/editor?

Hello, I’m a beginner. How can I make it so that when you click on the cube, a message is printed to the console?