What's the difference between these two, and which is more used, more efficient?
class Person {
constructor(name, age) {
this.name = name
this.age = age
}
}
OR
function Person(name, age) {
this.name = name
this.age = age
}