Great ES-6 features explanation. I've found typo:
function foo(a, b, c) { console.log(a=${a}, b=${b}, c=${c}} let data = [5, 15, 2]; foo( ...data); // a=5, b=15, c=2
a=${a}, b=${b}, c=${c}
There is a missing closing bracket of console.log()
Thanks for pointing that out. I hope you enjoyed the post beside the typos
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great ES-6 features explanation. I've found typo:
function foo(a, b, c) { console.log(
a=${a}, b=${b}, c=${c}
}let data = [5, 15, 2];
foo( ...data); // a=5, b=15, c=2
There is a missing closing bracket of console.log()
Thanks for pointing that out. I hope you enjoyed the post beside the typos