The purpose of analysis is to distill complexity into actionable insights only "insights" too often take the form of graphs

There are many advantages to using Map instead of Object, which we will talk about later.

  • What’s the difference between a Map object and a normal object?
  • An object usually has its own prototype, so an object always has a “prototype” key
  • An object’s key can only be a string or Symbols, but a Map’s key can be any value
  • You can easily get the number of key-value pairs in a Map by using the size attribute, whereas the number of key-value pairs in an object can only be confirmed manually

Now let’s upgrade the difficulty of the problem. When clicking the button, you need to judge not only the status but also the user’s identity: