The console is a quick and highly effective method to prototype and test JavaScript functions, snippets and scripts. Here, we'll talk about how to use it.
To access the Console, click the Console tab within the Web Inspector. The console allows you to define variables (with the var keyword), define functions, and call/use them by writing in raw lines of JavaScript and pressing enter to have them executed - this makes it ideal for simple rapid prototyping. Errors and logs are also displayed within the console, making it an essential debugging tool. Below is a short video tutorial...