To fix this console error in my developers: ERROR TypeError: "_co.Quiz is undefined"

To fix this erro I simply moved the variable from within the class to outside my class;

OLD:

export class HomePage {
  Quiz:any;

 

NEW:

export class HomePage {
  Quiz:any = '';

Not getting error anymore