const pName = prompt('Введите имя первого человека');
const pAge = prompt('Введите возраст первого человека');
const secName = prompt('Введите имя второго человека');
const secAge = prompt('Введите возраст второго человека');
const person1 = new Person(pName, pAge);
const person2 = new Person(secName, secAge);
const car1 = new Car('sedan', 'petrol','rear brakes','hunday', [person1]);
const car2 = new Car('van', 'diesel', 'rear brakes','nisan', [person1, person2]);
const garag1 = new Garag ('Cindy', '2 Cars', [person1], [car1,car2]);
const garag2 = new Garag ('Jon', '1 Cars', [person2], [car2]);
console.log(garag1,person1,car1,car2); @for $i from 0 through 60 {
$angle: 180 / 60 * $i * 1deg;
.radial-progress[data-progress="#{$i}"] .circle-block .fill,
.radial-progress[data-progress="#{$i}"] .circle-block .mask.full {
transform: rotate($angle);
}
.radial-progress[data-progress="#{$i}"] .circle-block .fill.fix {
transform: rotate($angle * 2);
}
.radial-progress[data-progress="#{$i}"] .inset .percentage .numbers {
width: 100%;
}
} const o = e.target.closest('.blog__item') const duplicateArray = ['a', 'b', 'c', 'a', 'b', 'c', 'q'];
console.log(
Array.from(new Set(duplicateArray))
);const duplicateArray = ['a', 'b', 'c', 'a', 'b', 'c', 'q'];
console.log(
duplicateArray.reduce(function (carry, item) {
if (!carry.includes(item)) carry.push(item);
return carry;
}, [])
);const duplicateArray = ['a', 'b', 'c', 'a', 'b', 'c', 'q'];
console.log(
[...duplicateArray.reduce((carry, item) => [...carry].includes(item) ? carry : carry + item, '')]
); interface FieldContract {
public function render(Repository $repository): ViewContract;
}