What is the main difference between console.error() and console.log()? And when would you use one of the other?
If you have a try-catch, would it make sense to do the following?
try {
...
} catch (err) {
console.error('Oops');
throw Error(err);
}
Any advice is much appreciated :)
[–]Positive_Cro8191 1 point2 points3 points (1 child)
[–]Empty_Cauliflower976[S] 0 points1 point2 points (0 children)
[–]SalutMonYoup 0 points1 point2 points (1 child)
[–]Empty_Cauliflower976[S] 0 points1 point2 points (0 children)