Sign in
Log inSign up

Difference between const fn1 = (a) => console.log(a) and const fn2 = (a) => { console.log(a); }

Nirmalya Ghosh's photo
Nirmalya Ghosh
·Jul 11, 2018

Can someone explain me the difference between these two?

Screen Shot 2018-07-11 at 10.17.55 AM.png

Both of them seem to log the same thing.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct