Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
NICE REGEX
cmon bro
true > destructuring ?
thanks
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
This comment is hidden because it contains spoiler information about the solution
Kalau ditanya simple sih, iya simple.
Cuma, gak mungkin dong tiap angka kamu cek-cekin satu-satu terus bikin hasilnya secara manual pake if.
Soal / permasalahan ini pengennya kamu bikin fungsi yang otomatis ngambil panjang digit dan kaliin.
mass saya pakai if(number == 10) return 50 * 5;
ada yang lebih simple lagi ?
btw saya baru belajar javascript