jQuery displays debugger instead of output

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



jQuery displays debugger instead of output



I am trying to get the output of my jQuery in google when displaying.
However my jQuery does not work anymore and it keep displaying this debugger:///VM###.



This is my code:


$(document).ready(function () {
var getJsonData = $.getJSON("json/travel.json")
.done(function (data)
console.log("hello");
);



Method I have tried:



Did it save to the server? Any solution or advice? Thanks!



Image





It looks like the output in the console is an array you entered before. And it is shown constantly because of Autocomplete from history is set.
– extempl
10 mins ago


Autocomplete from history





What is this autocomplete from history? I did not use any VM to run the code. Could the reason be that $.getJson save my data to the localhost?
– John
3 mins ago




1 Answer
1



It looks like the output in the console is an array you entered before. And it is shown constantly because of Autocomplete from history is set.


Autocomplete from history



So, answering your question - no, as console haven't output hello, then the request was failed. You can see all the requests on the Network tab and see why it was failed. Probably the URL does not exist, so there may be a request to JSON with 404.


hello


Network






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS