Last active
October 21, 2020 17:30
-
-
Save sb-bilal-dev/b9d1549bf3f740c7c2f92f62c03e3580 to your computer and use it in GitHub Desktop.
console.log code for Debugging JavaScript Part 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Let's log catCount | |
if (isLogging && catCount === 10) {} | |
// You can do it like this | |
if (isLogging && (console.log(catCount), catCount === 10)) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment