JS: How to Use Browser Console

By Xah Lee. Date: . Last updated: .

A easy way to try JavaScript code is to use browser's JavaScript console, usually under a menu named Developer Tool.

On Microsoft Windows, Google Chrome: Press F12 or Ctrl+Shift+i to toggle console.

(same key in linux, and Firefox too.)

chrome js console 2019-06-12 88y88
chrome JavaScript console 2019-06-12

Safari

In Safari, turn on Develop menu, then ⌘ command+⌥ option+i

sarari web dev console 2019-06-11 dnryw
Sarari web dev console 2019-06-11
safari turn on web console 2017 09 24 85788
in macOS Safari, to turn on web console, go to Safari Preferences, Advanced tab. Then, 【⌘ command+⌥ option+i】 to turn on web console.

Firefox

firefox console 2018-08-25 b4dc7
Firefox console 2018-08-25

JavaScript Basics

  1. JavaScript Basics
  2. true, false
  3. Operators
  4. Branch Control
  5. Loop
  6. Array Basics
  7. Object Basics
  8. RegExp Basics
Like it? Help me by telling your friends. Or, Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.

Web Dev Tutorials