Skip to content
RED SAGSkills
hard20 pts · first answer countsjavascriptclasses

Checking for a private field

In this class, what does Money.isMoney({ amount: 5 }) return?

class Money {
  #amount = 0
  static isMoney(x) { return #amount in x }
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions