-7

what does this line of code mean below? is it some some sort of ternary operation?

this.object01 = object02.attribute01 === someString;

this is using aurelia javascript

Jesse
  • 3,334
  • 6
  • 25
  • 38
dizad87
  • 408
  • 4
  • 14

1 Answers1

3

Break it down. There's two operations going on here: an assignment statement (one equals sign) and an equality check (three equals sign) which returns a boolean.

this.object01 is now a boolean containing true or false depending if object02.attribute01 === someString.

Strikegently
  • 2,043
  • 16
  • 20