Questions tagged [console.log]
a debugging tool for JavaScript. It is method of the console object which logs the given object in the Browser's JS console.
console.log
2,079
questions
0
votes
1
answer
27
views
Chrome outputs emtpy document fragment to the console before inserting it to the dom
When inserting a document fragment to the dom Chrome browser outputs empty document fragment to the console whereas Firefox outputs non-empty fragment before inserting and empty fragment after ...
-4
votes
0
answers
45
views
How to collect client side JavaScript logs [closed]
We are creating client side JavaScript applications for customer with a closed network. Some of our customer complaining about unexpected behavior of our applications. But these problems are hard to ...
0
votes
0
answers
64
views
My Javascript code is not running on console [closed]
My JavaScript code is not running on the console. Here is my code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name=&...
0
votes
0
answers
20
views
Is there a function to tell Click() in javascript, to stop at a specified number of clicks? [duplicate]
I am trying to write a bookmark-let, which I will run on a website.
javascript:(function() {window.setInterval(function () {
document.getElementsByClassName("some class")[0]....
0
votes
0
answers
16
views
why is my code not changing to the next page which is the suggestion page after hitting the button it says unknown error during login
why is my code not changing to the next page which is the suggestion page after hitting the button it says unknown error during login.
import { LightningElement, track } from 'lwc';
import logIn from '...
-3
votes
0
answers
30
views
code cannot print the thing asked for in the if statement [duplicate]
I have written code where there are two arrays, one consists of different sets and the other one consists of only three numbers. I've written an if statement where if the content of both of the arrays ...
0
votes
1
answer
51
views
Highchart Column Chart
UniqueLevels = [Level 0, Level 1, Level 2]
Sample Input = [{name:"Level 0",data:[{name: "Job A",y: 0.26},{name: "Job B",y: 0.36}]},
{name:"Level 1",data:[{name: ...
-1
votes
1
answer
43
views
How to print object properties in console.log nodejs [duplicate]
I have a body response like this
[
{
"createdAt": "2024-06-17T15:03:22.523Z",
"depositAddress": "0x361aB827bAE8FB0893a3d532a7FcfdFb623E27af"
},
{
...
-1
votes
1
answer
46
views
regular expression in browser console not returning the expected result [duplicate]
I don't think this question is a duplicate. The question I'm asking here relates to the behaviour of the (Firefox) browser's JavaScript console.
I'm well aware of the strangeness of this 'g' flag in a ...
2
votes
1
answer
35
views
js rewrite prototype.call, but why did "RangeError: Maximum call stack size exceeded" appear
Function.prototype.call = function(point,...arg){
console.log('ok');
const key = Symbol('key')
point[key] = this
const data = point[key](...arg)
delete point[key]
return data
}
...
-1
votes
1
answer
46
views
console.log() shows different result [duplicate]
I thought below two statement will show same result:
console.log(clickedEvent.target)
console.log(`Clicked Element:${clickedEvent.target}`)
But the result is:
<div>Account</div>
[object ...
0
votes
0
answers
20
views
Race condition for objects logged in console (javascript) [duplicate]
I was coding in JavaScript, running my code in a browser and using the console. I noticed that logged objects might not reflect the properties of that object at the time it was logged. This can occur ...
0
votes
0
answers
37
views
Anonymous stack trace for function expressions in safari browser
I am trying to get stack trace of a error which is thrown inside a function expression using console.trace. Int Safari stacktrace does not have function names and instead just gives anonymous ...
0
votes
0
answers
11
views
jupyter notebook - Log Console on a dependent python file
In Jupyter Notebook, how can I log on the log console (shown in View -> Show Log Console) the output of some log from a Python file dependency?
In myNoteBook.ipynb file I have:
import myfile
myfile....
0
votes
0
answers
15
views
How to output Electron log message to CMD console
I have an Electron project, and use electron-builder to build it to a windows exe. Now I want to support the commandlines. Try to call it in CMD console window and give it some parameters. Question is ...