class Picture {
constructor(icon) {
this.icon = icon
}
}
When I run this code twice in the Chrome console it doesn't throw any errors.
But when I try running it twice in the Firefox console it says Uncaught SyntaxError: redeclaration of let Picture
. Why do the browsers behave differently?