Answers for "typescript constructor assignment shorthand"

1

typescript constructor assignment shorthand

class User {
  constructor(
    private name: string,
    private surname: string,
    private age: number
  ) {}
}
Posted by: Guest on April-14-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language