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 best solutions below

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)