1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| function Sb2CiYuan(age, stat) { this.age = age || undefined; this.stat = stat || 'unknown'; this.activity = () => { switch(Math.floor(Math.random() * 6)){ case 1,2: return 'study'; case 3: return 'sleep'; case 4: return 'play online/TCG/TRPG/other(Blood On The Clocktower)' case 5: return 'Gal' case 6: return 'Anime' } } } const me = new Sb2CiYuan(17,'balance'); w̶o̶r̶l̶d̶.̶e̶x̶e̶c̶u̶t̶e̶(̶m̶e̶)̶
|