Questions tagged [google-chrome-console]

The Console of the Google Chrome browser is part of it's developer tools and debugger. Use this tag when asking questions about the Console API and it's usage.

Console is an integral part of Javascript debugging when done in Google Chrome. It offers the user a command line interface to execute Javascript expressions. Also it provides a logging interface to programmers who wish to log debug messages while executing a script.

The Console API provides web applications with methods for writing information to the console, creating JavaScript profiles, and initiating a debugging session.

You can find Console API reference here.

144 questions
-1
votes
1 answer

What is the difference between properties of an constructor function that are visible with `console.log` vs those that are visible with `console.dir`?

In console, when I define a constructor function and then add a property to it after the fact, running console.log(myConstructor) does not disclose that property. However, when I run console.dir(myConstructor) I can now see the property I added, as…
David Kennell
  • 1,147
  • 2
  • 11
  • 22
-1
votes
1 answer

document.elementFromPoint.click not work chrome console

How can i simulate click to make move with mouse in website https://www.playok.com/p/?g=sc+ document.elementFromPoint(x,y).click(); It only works on some elements, but not in game board
-1
votes
1 answer

Javascript Chrome console while

I was trying to create a loop in Chrome console with Javascript that executes the same function all the time. Instead it doesn't output anything and it actually just increases Chromes memory size until it crashes. Any advice on what's going wrong…
sander
  • 1,426
  • 4
  • 19
  • 46
-2
votes
1 answer

Can't make a http request from Google Chrome console

Cannot make http request to my VPS server from Google Chrome console. It is possible to send request to server from browser directly by simply going to http://11.11.111.11:5000/test (with proper IP address) and get right response. And all the…
-2
votes
1 answer

How to navigate to .ts files

I want to debug my Angular Typescript code, but when I open sources in my chrome console I only see these files: They all weird code in them that I don't recognise.According to this question's first answer, I should see the .ts files in my webpack…
-2
votes
1 answer

Multi property check ternary operator on json object not working in nodejs while its working in google chrome console

I have a json object like below let obj = { 'key1' : 'value1' , 'key2 : { 'key2a' : 'value2a' } } I wanted to do a ternary operator check which is equivalent to below code if(obj) { if(obj.key2) { if(obj.key2.key2a) { return…
Mr.Robot
  • 489
  • 2
  • 8
  • 17
-2
votes
1 answer

This ajax url is good but is noticing me GET 404 (Not Found)

I trying to do a validation by ajax and php, this is my ajax code: function PrintRecibopapel() { recibo = document.getElementById("txtCod").value; if(recibo == "") { alert("Debe Guardar el recibo antes de imprimir"); …
-2
votes
1 answer

Please explain what is happening in this piece of code in chrome console?

Javascript code: for(var i=0; i<5; i++){ console.log(i); setTimeout(function(){ console.log(" magic "+ i) }, 2000); }; outputs: What does the number 25 mean ? How i was incremented to 5 while i++ is unreachable after 4?
BalaajiChander
  • 139
  • 3
  • 21
-3
votes
1 answer

Chrome console returns array instead of its value, why is that?

var meals = { breakfast: "oatmeal", lunch: "turkey sandwich", dinner: "steak and potatoes" }; => undefined Object.assign({}, meals, {breakfast: ['oatmeal', 'banana']}) => {breakfast: Array(2), lunch: "turkey sandwich", dinner: "steak and…
codernon
  • 35
  • 1
  • 7
1 2 3
9
10