The console has several functions:
You can use the Script Manager to create and manage scripts and even assign icons to them so they can easily be located later in the plugin menu under User Scripts. Further details can be found here.
The command line is designed to help programmers in that they can enter commands here directly, without having to write an extra plugin or Expression. Entries such as println(sin(89)) can be executed by pressing the Return key and the result displayed in the console. The last commands entered can be selected using the cursor keys (up, down).
Here you will also find 2 buttons with which you can switch back-and-forth between Python and C.O.F.F.E.E. interpolation. In the File menu you will find the Clear Console command with which you can delete the content displayed in the console.
Right-clicking gives you access to a small context menu with the following commands:
Copies the line under the cursor to the cache.
Copies the entire console content to the cache.
If the console is full, the content will scroll upwards. If disabled, the content will not scroll.