How does js get the method name

window.__hello("copyLink", {
    params: {
        str: "hello word"
    },
    callback: window.__copyLinkResponse = function(r) => {
        console.log(r)
    }
    
})
window.__hello = function(methodName, data) {
    // data.callback   __copyLinkResponse ??
    
    
}

what syntax is this

function(r) => {
    console.log(r)
}

Function you can get the method name via Function.name .
if it is an anonymous function, there is no name

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e63278-5aa56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e63278-5aa56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?