MayHyeyeonKim / games-for-love-backup

0 stars 0 forks source link

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

Open MayHyeyeonKim opened 1 month ago

MayHyeyeonKim commented 1 month 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.