Проблем с 1. Employees от Objects and Classes - Exercise
Здравейте, опитвам се да реша задачата с class constructor и получавам 66/100
Някой може ли да ми помогне ?
Благодаря :)
задача: https://judge.softuni.org/Contests/Compete/Index/1322#0
код:
function solve(input) {
class Man {
constructor(name, surname){
this.name = name;
this.surname = surname
}
display(){
console.log(`Name: ${this.name + " " + this.surname} -- Personal Number: ${(this.name + " " + this.surname).length}`)
}
}
let result = []
input.map(x => {
let[name, surname] = x.split(" ")
let myMan = new Man(name, surname)
result.push(myMan)
})
result.forEach(x => x.display())
}
thanks :)
wow, it impressed me. basketball stars unblocked provides a pleasant and accessible experience for everyone, whether you're a basketball enthusiast or just seeking for some unblocked gaming fun.
We provide you horny Mahipalpur Escorts Service for preventing you to be caught by any last-minute hassle. Our professional and cheap escorts in Mahipalpur leave no stone unturned to make your night wonderful.