0

See the codes given below. Both shows the same output. Please tell me different between both code are function and =>

Const myfunction =function () { ...........................................//something code . } Const myfunction=()=>{ ..........................................//something code . }

8th Oct 2020, 4:55 AM
RD:programmer
RD:programmer - avatar
1 Odpowiedź
+ 2
You can define a function to a variable in any way you like. I prefer the Arrow function one 🤟
8th Oct 2020, 5:46 AM
Twaatii
Twaatii - avatar