FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Modern JS Talk: Arrow Functions
NewsWeb Development

Modern JS Talk: Arrow Functions

via Dev.toKenta Takeuchi11h ago

This article was originally published on bmf-tech.com . ※This article is a reprint from the Innovator Japan Engineers’ Blog . What are Arrow Functions? In summary, A new syntax added in ES2015 Shorter than regular function expressions Lexically binds the value of this (making it easier to understand the context of this ) Always anonymous functions The big point of arrow function expressions, written with => , is that they " lexically bind the value of this ". With arrow functions, what used to be written like this... const foo = function () { console . log ( this ); } foo (); Can now be written like this. const foo = () => { console . log ( this ); } foo (); By the way, if there are no arguments, parentheses () are required, and if there is only one argument, parentheses are optional. // Parentheses are required when there are no arguments const foo = () => { console . log ( this ); } foo (); // Parentheses are optional when there is only one argument const foo = ( value ) => { console

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles

News

Gothub is live

Lobsters • 11h ago

I Built the Tool I Wish I Had When I Started My Open Source Journey
News

I Built the Tool I Wish I Had When I Started My Open Source Journey

Medium Programming • 11h ago

Razer Boomslang 20th Anniversary Mouse Review: For Collectors
News

Razer Boomslang 20th Anniversary Mouse Review: For Collectors

Wired • 11h ago

How Bug Bounty Hunters Prioritize 10,000 Recon Targets (Without Losing Their Mind)
News

How Bug Bounty Hunters Prioritize 10,000 Recon Targets (Without Losing Their Mind)

Medium Programming • 11h ago

Microsoft Hasn’t Had a Coherent GUI Strategy Since Petzold
News

Microsoft Hasn’t Had a Coherent GUI Strategy Since Petzold

Lobsters • 12h ago

Discover More Articles