I’m trying to follow the the examples here
http://eloquentjavascript.net/chapter2.html
and
print('blah');
Keeps trying to send to a physical printer when run in a browser. I just want console output.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want 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 multiple values, you can just list them all out as arguments (no need to concatenate)console.log("a", "b", "c", 1, 2, 3);You can bring it up with
control-shift ithen select the console tab on the far right. And of course FireBug has a similar feature if you’re more of a FireFox fan.