-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,522
  • 6
  • 25
  • 40
dizad87
  • 448
  • 4
  • 15

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,251
  • 20
  • 23