We're a place where coders share, stay up-to-date and grow their careers.
Great article, I had never heard on console.assert!
One of the things that I starting doing as a short hand for writing labels is wrapping the variables in an object literal. It saves on the repetitive typing!
const firstName = 'Leira'; const lastName = 'Sánchez'; console.log({firstName, lastName}); // {firstName: "Leira", lastName: "Sánchez"}
Wow! This great! I will definitely be using this from now on. Thank you 🙂
I like that trick too! And now with console.table you can make it look even better!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Great article, I had never heard on console.assert!
One of the things that I starting doing as a short hand for writing labels is wrapping the variables in an object literal. It saves on the repetitive typing!
Wow! This great! I will definitely be using this from now on. Thank you 🙂
I like that trick too! And now with console.table you can make it look even better!