In order to view the console in Safari, you have to enable the 'Show Develop menu in menu bar' setting in the 'Advanced' panel of Safari’s preferences.
Open the 'Console' panel in Safari’s Web Inspector: Cmd + Opt + C
Windows: Ctrl + Shift + J
Mac OS: Cmd + Opt + J
Windows: Ctrl + Shift + K
Mac OS: Cmd + Opt + K
F12, then click on the 'Console' tab