Console Cheats

Console. part is an object, .log is the function

a = 2;

Open the console and type

a = 2;

Hit shift + enter to go a new line then

console.log(a);

Prompt allows you to prompt the user for input

age = prompt("What's your age");
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License