I created a fiddle with the following code:
var x=10;
When I try to view this in the console, I get the following:
> x
ReferenceError: x is not defined
Makes sense, as it takes Javascript to run the console. Is there a way to get this working?
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 use Chrome or Chromium, looks at the bottom of your developer console, where the string
<top frame>appears. Click on it and selectresult(fiddle.jshell.net). This will change the current scope of the browser and you can access to all the global variables. Also, remember to change the loading option in jsFiddle tono wrapif you want to accessvarvariables, too.UPDATE: 2014.12.01
With Firefox (34+) and the new Firefox Developer Edition, it’s possibile to do the same by enabling the Select a frame as the currently targeted document extra tool into the developer tools, then click on it and select
http://fiddle.jshell.net/_display/.