Ad
Code
Diff
  • function User(name, surname) {
     return {name, surname}
    }
    
    
    • function User(name, surname)
    • {
    • this.name = name
    • this.surname = surname
    • function User(name, surname) {
    • return {name, surname}
    • }