vetur Property has no initializer and is not definitely assigned in 1

vetur Property has no initializer and is not definitely assigned in

// tsconfig.json

{
	"compilerOptions": {
    	"strictPropertyInitialization": false
    }
}

Here is what the above code is Doing:
1. We’re creating a class called Person.
2. We’re creating a constructor that takes in a name and assigns it to the name property.
3. We’re creating a method called sayHello that returns a string that says hello to the person.
4. We’re creating an instance of the Person class and assigning it to the variable person.
5. We’re calling the sayHello method on the person instance.

Similar Posts