0

const sebuahObject = { fungsi: () => { console.log('Hai Dunia Kucing!!') } }

how to display text

15th Jun 2020, 8:36 PM
Febriantika Triarini
3 Respostas
+ 4
sebuahObject.fungsi()
15th Jun 2020, 8:39 PM
Abhay
Abhay - avatar
+ 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
15th Jun 2020, 9:07 PM
Abhay
Abhay - avatar
0
what is the difference between function () => {} and function () {}?
15th Jun 2020, 9:04 PM
Febriantika Triarini