JS: How to Use Browser Console
A easy way to try JavaScript code is to use browser's JavaScript console, usually under a menu named Developer Tool.
Google Chrome Browser
On Google Chrome browser for Windows: Press F12 or Ctrl+Shift+i to toggle JavaScript console.
On macOS ⌘ command+⌥ option+i
![chrome js console 2019-06-12 88y88](i/chrome_js_console_2019-06-12_88y88.png)
Firefox
- Firefox on Microsoft Windows, Press Ctrl+Shift+i to toggle JavaScript console.
- Firefox on macOS, Press ⌘ command+⌥ option+i to toggle JavaScript console.
![firefox console 2018-08-25 b4dc7](i/firefox_console_2018-08-25_b4dc7.png)
Safari
In Safari, first turn on Develop menu.
![safari turn on web console 2017 09 24 85788](i/safari_turn_on_web_console_2017-09-24_85788.png)
then press ⌘ command+⌥ option+i to toggle the JavaScript console.
![sarari web dev console 2019-06-11 dnryw](i/sarari_web_dev_console_2019-06-11_dnryw.png)