The console.log can do so much more than just print variables. Show name-value pairs and show specific error messages. Grouping can be helpful if you want to see your console grouped by specific sections. The console.assert() method writes an error message to the console if the assertion is false.

5m read timeFrom dev.to
Post cover image
Table of contents
View This On YouTubeShow Name Value PairsSpecific Console MessagesErrors and AssertionsTraceGroupingTablesDebuggerConclusion

Sort: