DEV Community

loading...

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

Collapse
guilhermetoti profile image
Guilherme Toti Author

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!

Collapse
zoedreams profile image
☮️✝️☪️🕉☸️✡️☯️

im sure that will help someone one day.