All Questions
49 questions
0
votes
2
answers
141
views
Why console.log on chrome console display undefined and does not print out value? What to do if I want to list a value?
Try this in chrome console:
var x =2;
console.log(x);
Why console.log() on chrome console display undefined and does not print out value? Is there anything wrong in my setting?
What to do if ...
0
votes
2
answers
380
views
When I run this JavaScript code in Visual Studio Code, some console.log() operations work but some don't
I am working on a JavaScript objects exercise for a course I'm following, but when I run the code I don't get the expected result. I've cut the code down to the essentials for clarity.
const myObject =...
3
votes
1
answer
845
views
Chrome Dev Console no longer allows to copy console logged text
Before: I right click on the logged text and can select Copy to copy the logged texts.
Now: I right click on the logged text but no longer see any Copy option. I now only see the three options shown ...
0
votes
1
answer
76
views
Chat message not logging nodejs
Aim: To make the chat message the user entered to appear in the console (terminal). It currently isn't logging anything and I don't know how to debug this problem. Please keep in mind that I'm a ...
0
votes
0
answers
119
views
How to get the value of a variable when you cant debug or use console.log()
I am trying to find where this extension I installed is storing the templates that are made. I want to know this and HOW they are stored so that I can change the code so that there is a specific ...
0
votes
0
answers
115
views
How do I console log (debugg) what is inside my html file in visual studio?
Here is what I've tried in VS. However, it's not giving the output I want.
<html>
<head>
</head>
<body>
<h1 id="header"> Here is ...
-1
votes
1
answer
50
views
How can I get a specialized log() to accept many arguments?
I have been using this logger in node:
// https://stackoverflow.com/questions/9781218/how-to-change-node-jss-console-font-color
function logC(text) {
console.log('\x1b[36m%s\x1b[0m', text);
}
...
3
votes
2
answers
566
views
Cannot override google app script's console.log()
I have a large google app script writing lots of log line to the log explorer. I want to be able to disable or enable logging if needed.
Here's a code that seems to work as expected on a browser.
Here ...
0
votes
1
answer
745
views
An uncaught TypeError: Cannot set property 'className' of undefined in js
So I am trying to make a carousel in Javascript and Uncaught TypeError: Cannot set property 'className' of undefined is showing in my console for setClasses and at initCarousel. I am not sure how to ...
0
votes
1
answer
159
views
Why is React not treating my array properly?
When I render this React component:
import React, { useState, useEffect, useCallback } from "react";
// import RenderLineChart from "../recharts/rechart.component";
import axios ...
0
votes
1
answer
724
views
mac safari show full console.log output
how to setting safari develop tool ?
1
vote
2
answers
91
views
Trying to make my first JavaScript project work, full function is displayed in the "console" instead of the actual result I want from the code
I'm doing my first JS project which is a simple Rock, Paper, Scissor game that should work in the console.
I think my code is quite correct, but when I "console.log" my function (playRound) I get ...
1
vote
2
answers
2k
views
How to display to console nodes from linked list
I have a class which creates a link list and also a function that adds nodes to that list . I am trying to implement more functions to the list but I want to see the changes these functions make by ...
5
votes
2
answers
5k
views
Add a console.log or equivalent from within the browser
In e.g., Chrome Dev tools, it is easy to set a breakpoint in the Javascript for a website. When you are stopped at a breakpoint, it is easy to log out the value of any variable in the scope of the ...
2
votes
0
answers
221
views
Is it possible to filter browser console.log output by console.group?
I like the console.group() feature very much.
Is there a way to filter the log using the group name as the filter term?
e.g.
console.log("I don't want to see this in the log");
console.group("foo");...