JavaScript: How to Use Browser's JS 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. JavaScript: How to Use Browser's JS Console
  3. JavaScript Tutorial by Example
  4. JavaScript: Data Types
  5. JavaScript: true, false
  6. JavaScript: Operators
  7. JavaScript: Variable
  8. JavaScript: Branch Control: if then else, switch
  9. JavaScript: for while do Loop
  10. JavaScript: Array Basics
  11. JavaScript: Object Basics
  12. JavaScript: RegExp Tutorial
  13. JavaScript: Throw Try Catch Finally
Like what you read? Buy JavaScript in Depth
or, buy a new keyboard, see Keyboard Reviews.