+ 3

What benefit "console.log"? and How much type console? Or only console.log.

11th Mar 2018, 7:43 PM
Sarmad Saad
Sarmad Saad - avatar
19 Answers
+ 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.
11th Mar 2018, 8:02 PM
josh mizzi
josh mizzi - avatar
+ 2
https://code.sololearn.com/WAq5FFgJAJvC/?ref=app go through the links in code, u can test console formatting tricks on chrome Dev tools , 👍
12th Mar 2018, 2:00 PM
Morpheus
Morpheus - avatar
+ 2
Thanks
12th Mar 2018, 4:34 PM
Sarmad Saad
Sarmad Saad - avatar
+ 2
@Morpheus you know How much type console? Or only (console.log)
12th Mar 2018, 4:55 PM
Sarmad Saad
Sarmad Saad - avatar
+ 2
console.log() console.error() I know only 2, sometimes I also use assert() for debugging from node
12th Mar 2018, 4:57 PM
Morpheus
Morpheus - avatar
+ 2
Ok, Thanks can you give me Example for "assert()"
12th Mar 2018, 4:59 PM
Sarmad Saad
Sarmad Saad - avatar
+ 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
12th Mar 2018, 5:02 PM
Morpheus
Morpheus - avatar
+ 2
Thanks
12th Mar 2018, 5:10 PM
Sarmad Saad
Sarmad Saad - avatar
+ 1
Thanks, I'm need more useful console.log @josh mizzi
11th Mar 2018, 8:06 PM
Sarmad Saad
Sarmad Saad - avatar
+ 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.
11th Mar 2018, 9:36 PM
josh mizzi
josh mizzi - avatar
+ 1
Thank you for helpful you know How much type console? Or only (console.log)
11th Mar 2018, 10:05 PM
Sarmad Saad
Sarmad Saad - avatar
+ 1
What this Cool trick?
11th Mar 2018, 10:32 PM
Sarmad Saad
Sarmad Saad - avatar
+ 1
I can confirm the CSS trick works in most browsers.
11th Mar 2018, 10:32 PM
josh mizzi
josh mizzi - avatar
+ 1
What this Trick?
11th Mar 2018, 10:33 PM
Sarmad Saad
Sarmad Saad - avatar
+ 1
How to use console.log? give me Example
11th Mar 2018, 10:37 PM
Sarmad Saad
Sarmad Saad - avatar
+ 1
Thanks
11th Mar 2018, 10:42 PM
Sarmad Saad
Sarmad Saad - avatar
+ 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..
11th Mar 2018, 11:04 PM
josh mizzi
josh mizzi - avatar
0
You can use css and HTML in a String passed to console.log()
11th Mar 2018, 10:35 PM
josh mizzi
josh mizzi - avatar
0
Console.log("this text will appear on the browser's console" );
11th Mar 2018, 10:40 PM
josh mizzi
josh mizzi - avatar