0
const sebuahObject = { fungsi: () => { console.log('Hai Dunia Kucing!!') } }
how to display text
3 Réponses
+ 4
sebuahObject.fungsi()
+ 2
You mean between () =>{} and function(){} so the difference is in syntax, "()=>" makes the code short and more readable ,it's ES6 syntax,pls go through JavaScript course in here
0
what is the difference between function () => {} and function () {}?