how to display the full output of a repeat loop in the console

Asked

Viewed 36 times

2

I have a very simplistic example of code. Segue Ex.:

for(var i = 0; i < 5; i++){
  console.log("alguma coisa");
}

In the Chrome Devtools does not appear well the output I expected, the output is something analogous to the representation of the amount of times the output performed, followed by the output itself. Ex.: 5 alguma coisa

You can change this pattern?

1 answer

2


Good is not the best way but you can try it:

1 -> Press F12 (Open the debug panel')

2 -> Press F1 or click on the '3 dots in the panel' next to the X and click Settings (Opens the panel config)

3 -> In the Console part, enable the option Show timestamps.

  • The best way is the one that works, and it worked. thanks!

  • Please, it is a pleasure to help. : D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.