How to print result of some javascript execution in ScriptEditor?
The result pane displays the result of the evaluation so the easiest way to print the result is to execute:

Math.round(5.0/2)


Using console.log() does work from the command line:

osascript -l JavaScript -e 'console.log(Math.round(5.0/2))'