MayHyeyeonKim / games-for-love-backup

0 stars 0 forks source link

When to use `return` in arrow function (`()=>()` or `()=>{}`) #5

Open MayHyeyeonKim opened 4 weeks ago

MayHyeyeonKim commented 4 weeks ago

When we write an arrow function in JS, sometimes we need to use return to tell the function what to give back, and other times, we dont.