Check out example codes for "typescript default value for boolean". It will help you in understanding the concepts better.

Code Example 1

// undefined, as well as false, are both falsy values that you can test the same way.
export class ReccurrenceModel {
    ...
    isMonday = false;
    isTuesday = false;
    ...
}

Learn ReactJs, React Native from akashmittal.com