3 ms·
Nice trick. What I do is console.log('MyVariable',MyVariable,'MyOtherVariable',MyOtherVariable); When writing it I simply copy the variable, "paste twice" and
by Raphmedia 8y ago
Nice trick.
What I do is console.log('MyVariable',MyVariable,'MyOtherVariable',MyOtherVariable);
When writing it I simply copy the variable, "paste twice" and then "wrap with quotation marks".
That one is pretty nice because you can add ,'\n' to have a new line. console.log('MyVariable',MyVariable,'\n','MyOtherVariable',MyOtherVariable);