Today I Learned - Rocky Kev

TIL about wrapping a variable in curly brackets

POSTED ON:

TAGS:

I learned this trick a while back and realized not everyone knows about it.

Via Christian Heilmann's Developer Tools secrets that shouldn’t be secrets


Related TILs

Tagged:

TIL Accessibility in Devtools

You can enable the Accessibility Devtool (currently in experiments mode) to do screenreader testing.

Grouping console messages together

You can wrap console messages together using console.group('name') and console.groupEnd('name')

TIL about console.assert()

You can instead use console.assert() to show conditional errors