If you need something simple, the Chrome console will let you run JavaScript on the fly. To print text you can use console.log('blah'); And if you want to print several values, you can simply list them as arguments (no concatenation is needed) console.log("a", "b", "c", 1, 2, 3);
You can output it using control-shift i , and then select the console tab on the right. And, of course, FireBug has a similar feature if you are more of a FireFox fan.

source share