Skip to main content

All 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 ...
DriveCarefully's user avatar
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 =...
Paul Rathbone's user avatar
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 ...
nakakapagpabagabag's user avatar
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 ...
Chanson Guo's user avatar
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 ...
user avatar
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 ...
limpanJJ's user avatar
-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); } ...
favor's user avatar
  • 395
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 ...
OJNSim's user avatar
  • 808
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 ...
Lourdes Leiner's user avatar
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 ...
jakobarsement's user avatar
0 votes
1 answer
724 views

mac safari show full console.log output

how to setting safari develop tool ?
PeakFish's user avatar
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 ...
DojaCat's user avatar
  • 31
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 ...
meabefir's user avatar
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 ...
elethan's user avatar
  • 17.1k
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");...
brennanyoung's user avatar
  • 6,534

15 30 50 per page