Skip to content

Commit c51058b

Browse files
committed
day 15
1 parent 2f06722 commit c51058b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

15_Day/15_day_classes.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,11 @@ class Person {
508508
let formattedSkills = skills ? `He knows ${skills}` : ''
509509

510510
let info = `${fullName} is ${this.age}. He lives ${this.city}, ${this.country}. ${formattedSkills}`
511-
console.log(this)
512511
return info
513512
}
514513
static favoriteSkill() {
515514
const skills = ['HTML', 'CSS', 'JS', 'React', 'Python', 'Node']
516515
const index = Math.floor(Math.random() * skills.length)
517-
console.log('hi')
518516
return skills[index]
519517
}
520518
static showDateTime() {
@@ -609,7 +607,6 @@ class Student extends Person {
609607
let pronoun = this.gender == 'Male' ? 'He' : 'She'
610608

611609
let info = `${fullName} is ${this.age}. ${pronoun} lives in ${this.city}, ${this.country}. ${formattedSkills}`
612-
console.log(this)
613610
return info
614611
}
615612
}

0 commit comments

Comments
 (0)