negation condition logic; negation

72 views Asked by At

Could you help me to invert this condition in javascript?

(this.startingNode.isAdaptive && this.startingNode.studentAssessment.isNotCompleted && this.user.isStudentLike) || this.isFinalAssessment
1

There are 1 answers

0
rayman.io On

Add ! in front of it and wrap it in brackets ().

Like this:

!((this.startingNode.isAdaptive && this.startingNode.studentAssessment.isNotCompleted && this.user.isStudentLike) || this.isFinalAssessment)