The function name is an important bit of information, especially for debugging. But, how is it determined in arrow function syntax?
For normal functions, function name is clearly stated in function declarations:
function doSomething() {
// body code
}
Even for function expressions, you can supply a function name to make debugging easier:
var f = function doSomething() {
// body code
};
Arrow functions do not use the function
keyword and you cannot include a function name. But since they are essentially used in expressions, the left-hand side variable name is assigned to the resultant function as the function's name
property.
let doSomething = () => {
// body code
};
This is the standard behavior according to the specification.
Very Educative. How is it useful in steemit tools? Is there any simple tool to develop steemit promotional app in Kiswahali? Kiswahili is my mother tongue.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Some small but effective knowledge.
thanks
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I have no idea....what I am reading! My poor brain...
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
sir have u any group for steemit upvote?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I think you need something like @steemtrail .
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This post has received a 6.98 % upvote from @buildawhale thanks to: @ghasemkiani. Send at least 0.50 SBD to @buildawhale with a post link in the memo field for a portion of the next vote.
To support our curation initiative, please vote on my owner, @themarkymark, as a Steem Witness
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This post has received a 2.39 % upvote from @booster thanks to: @ghasemkiani.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for the awesome post.
upvote & comment...
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit