What's the differences between foo("123") and foo`123`?

Viewed 79

For a function like this. There are two ways to invoke the foo funciton.

function foo(){
   console.log(arguments);
}
foo(123);  // a normal way to invoke a function.
foo`123`;  // also a way to invoke a function.

I want to know the differences about the two way to invoke a function in details. And the usages of the second way to invoke a function.

0 Answers
Related