+ 3
What benefit "console.log"? and How much type console? Or only console.log.
19 Réponses
+ 1
This can be very useful. It allows you to display hidden messages to the console.
This allows you peak into your code while it exacutes. Which can help when troubleahooting bugs.
+ 2
https://code.sololearn.com/WAq5FFgJAJvC/?ref=app
go through the links in code, u can test console formatting tricks on chrome Dev tools , 👍
+ 2
Thanks
+ 2
@Morpheus
you know How much type console? Or only (console.log)
+ 2
console.log()
console.error()
I know only 2, sometimes I also use assert() for debugging from node
+ 2
Ok, Thanks
can you give me Example for "assert()"
+ 2
I can , but not here, SoloLearn won't support node js but you can try it on your system
http://unitjs.com/guide/assert-node-js.html
+ 2
Thanks
+ 1
Thanks, I'm need more useful console.log
@josh mizzi
+ 1
It basically allows you to print messages on the development console in the browser rendering the page.
I would recommend Googling browserNameHere console and browserNameHere developer tools.
+ 1
Thank you for helpful
you know How much type console? Or only (console.log)
+ 1
What this Cool trick?
+ 1
I can confirm the CSS trick works in most browsers.
+ 1
What this Trick?
+ 1
How to use console.log? give me Example
+ 1
Thanks
+ 1
Console. log("<Span style='color: green' >Hi</span>") ;
Theoretically the use of html does not have a limit, however, overuse will likely be unpractical.
I am also unsure as to whether you can render images, videos etc..
0
You can use css and HTML in a String passed to console.log()
0
Console.log("this text will appear on the browser's console" );