Symbol problem of es6

what are the two types of attribute names of an object? ask for guidance. Isn"t the previous string a type? there can be many attributes and names in an object.
clipboard.png

May.13,2022

is the type of key. The key of an object cannot be defined in this way.

{
    function(){}: xxx
}

is string and Symbol ah

 let obj = {[Symbol('mykey')]:'123'}
Menu