JS: How to Use Browser Console

By Xah Lee. Date: . Last updated: .
chrome js console 2016-10-27
Google Chrome browser web JavaScript console.

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

There, type 1+1, press Enter ↵, then it'll show 2.

Firefox web dev tool 2014-08-28
Firefox web dev tool

JavaScript Basics

  1. How to Run JavaScript
  2. JS: How to Use Browser Console
  3. JavaScript Tutorial by Example
  4. JS: Data Types
  5. JS: true, false
  6. JS: Operators
  7. JS: Variable
  8. JS: Branch Control: if then else, switch
  9. JS: for while do Loop
  10. JS: Array Basics
  11. JS: Object Basics
  12. JS: RegExp Tutorial
  13. JS: Throw Try Catch Finally
Like what you read? Buy JavaScript in Depth