console.log(), but are you using node? Noticed it in your tag. If that's the case you can require fs and write logs out to your filesystem. Also check out console.table for iterable objects, and also console.assert
I don't have console.alert. Did you mean .assert?
Yes. Sorry, on my phone when I punched that out. Also look into console.error()
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.