const sebuahObject = { fungsi: () => { console.log('Hai Dunia Kucing!!') } } | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

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

how to display text

15th Jun 2020, 8:36 PM
Febriantika Triarini
3 Respuestas
+ 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