I’m just beginning JS.
Is there a way to simply include instances variables when logging to the console? For example, I wanted to do this but it doesn’t seem to work:
console.log(10 50 100);
Or if I had variables: console.log(a b c);
I learned you can concatenate strings with a template literal like this:
console.log(`${a} ${100}`);
But I wasn’t sure if that was mainly used to mix text with variables etc? And is that the easiest way to simply list a series of instances/variables? Thanks