Answers for "typescript default value in constructor"

1

typescript default value in constructor

export class Test {
    constructor(private foo: string = "foo", private bar: string = "bar") {}
}
Posted by: Guest on July-19-2021

Code answers related to "typescript default value in constructor"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language