Tag:Symbol type

  • Do you know how to use JavaScript symbol types


    Symbol type According to the specification, the property key of an object can only be of string type or symbol type. It’s not number, it’s not Boolean, it’s only string or symbol. So far, we’ve only seen strings. Now let’s take a look at what symbols can do for us. Symbol The “symbol” value represents […]