Skip to content Skip to sidebar Skip to footer
Showing posts with the label Console.log

Why Console.log Displays Incorrect Object's Values?

I don't understand why console.log displays that d1 contains [100,200,300] before I even introd… Read more Why Console.log Displays Incorrect Object's Values?

Javascript Suppress A Specific Error

I have the following line in my JavaScript file, which creates an error message on the console: myO… Read more Javascript Suppress A Specific Error

A Function With A Console Log Output Inside Console.log Prints Undefined

function haha(){ console.log('haha'); } console.log(haha()); Prints: haha undefined I… Read more A Function With A Console Log Output Inside Console.log Prints Undefined

Is It Possible To Render Html Into Javascript Console?

I would like to render HTML from a console.(log/info/warn): console.html(' Hello! '); woul… Read more Is It Possible To Render Html Into Javascript Console?

Process.env.port Prints Weird String

When running console.log('Express server listening on port ' + port); in node.js on a deplo… Read more Process.env.port Prints Weird String

Show Original Order Of Object Properties In Console.log

I need for some debugging to see the original order of one JavaScript object's properties but (… Read more Show Original Order Of Object Properties In Console.log

Javascript: Why Sometimes Alert() Does Not Work But Console.log() Does?

From time to time, I face a very intriguing bug. My javascript code does not display an alert(msg) … Read more Javascript: Why Sometimes Alert() Does Not Work But Console.log() Does?

Chrome Devtools - Inconsistent Array Length

I seem to have stumbled upon an inconsistency in Chrome DevTools. Above is a screenshot from the D… Read more Chrome Devtools - Inconsistent Array Length