DEV Community

Discussion on: Stop using default console.log, check this instead

Collapse
 
guilhermetoti profile image
Guilherme Toti

You can do it the same way! You can use ... assignment and array of values in a console.log!

Just like:

const myArr = [1,2,3]
console.log(...myArr)
console.log(myArra)

Both should work perfectly!