+ 1

Can I add arrow function directly under object in JS

Like this (is there any other way for this? or adding arrow function directly in object in not valid?) https://code.sololearn.com/WIR1yvl6hmYN/?ref=app

22nd Nov 2020, 1:04 PM
Himanshu Rai
Himanshu Rai - avatar
3 Answers
22nd Nov 2020, 1:14 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
22nd Nov 2020, 1:17 PM
Himanshu Rai
Himanshu Rai - avatar
+ 1
You are welcome, Himanshu Rai đŸ±
22nd Nov 2020, 1:17 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
Hot today
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes