Hi there,
I create a thread because I feel confused about a JS notion. What is the difference between these two console commands?
Let's take an example:
let n1 = "123";
console.log(
console.log(n1);
Is there any reason to use console.log(
To me, it makes things more difficult than they have to be.
I create a thread because I feel confused about a JS notion. What is the difference between these two console commands?
Let's take an example:
let n1 = "123";
console.log(
${n1} : ${typeof n1}
);console.log(n1);
Is there any reason to use console.log(
${n1} : ${typeof n1}
); // -> 123 : numberTo me, it makes things more difficult than they have to be.