constructor() {
super();
this.state = {
value1 : Math.floor(Math.random() * 100),
value2 : Math.floor(Math.random() * 100),
value3 : Math.floor(Math.random() * 100),
proposedAnswer : Math.floor(Math.random() * 3) + this.state.value1 + this.state.value2 + this.state.value3,
numQuestions : 0,
numCorrect : 0
};
}
I don't understand how it cannot read the value of the variable 'value1'.
this.state