Using `console.log()` for JavaScript debugging is the most common practice. But, there is more…
🧵
* The most common Console methods:
console.log() – For general output of logging information.
console. info() – Informative logging.
console.debug() – A message to the console with the log level debug.
console.warn() – A warning message.
console.error() – An error message.
* Custom CSS styles for a console.log():
The `console.log` output can be styled in DevTools using the CSS format specifier.
If you want to truncate the text to the specific number of lines, you can use "-webkit-line-clamp" property.
An ellipsis will be shown at the point where the text is clamped.