Javascript consoles are very handy for debugging and getting live results from your script. Although Sublime Text comes with build systems for many other scripting languages, it does not come with a built-in Javascript build system. Many...
Method 1 of 2:
Using JSC (Mac OS X)
Setting Up

Go to Tools > Build System > New Build System in the top bar.

{ "cmd": ["/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc", "$file"], "selector": "source.js" }

Save the file as JSC.sublime-build in the default "user" folder. Now you have created your build system!
Using the Console
Open the Javascript file that you want to run in Sublime Text.
Use debug() instead of console.log() in your script.

Go to Tools > Build System in the top bar and select JSC. This is the build system that you just created.

Build the Javascript file. Use either the shortcut (Ctrl+B for Windows, and ⌘ Cmd+B for Mac), or choose Build from the Tools menu. A console will now appear in a pane at the bottom of the window, showing the results of your script!
Method 2 of 2:
Using Node.js
Setting Up

Go to Tools > Build System > New Build System in the top bar.

{ "cmd": ["node", "$file"], "selector": "source.js" }

Save the file as node.sublime-build in the default "user" folder. Now you have created your build system!
Using the Console
Open the Javascript file that you want to run in Sublime Text.

Go to Tools > Build System in the top bar and select node. This is the build system that you just created.

Build the Javascript file. Use either the build shortcut (Ctrl+B for Windows, and ⌘ Cmd+B for Mac), or choose Build from the Tools menu. A console will now appear in a pane at the bottom of the window, showing the results of your script!

Update 05 March 2020
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZpuimq61sYyaZKOZppbApL7Iqatmm5%2BjwLC4xGagp2Wjqq%2BttcyeZK2dqKk%3D