👋 Привет, друг!
В этом канале я выкладываю структурированные, обучающие уроки и материалы по вёрстке сайтов и фронтенду.
Присоединяйся и начинай учиться!
Связь: @Tigran1963
Post #2687
884
ВЁ @free_html_lessons
Showing posts older than #2688 · Back to latest


Input: { x: 5, y: { z: 7, w: { v: -3, }, }, }
Result: 9
Input: { a: "text", b: { c: true, d: null, e: 5, }, }
Result: 5



Input: { a: { b: { c: "d" } } }, "a.b.c"
Result: "d"
Input: { a: { b: { c: "d" } } }, "a.b"
Result: { c: "d" }


const students = [
{ name: "Alice", grades: { math: 85, english: 92, history: 78 } },
{ name: "Bob", grades: { math: 90, english: 80, history: 85 } },
{ name: "Charlie", grades: { math: 72, english: 88, history: 95 } },
{ name: "David", grades: { math: 95, english: 91, history: 89 } },
{ name: "Eva", grades: { math: 87, english: 94, history: 76 } },
];
getStudentReport(studentName)`**: принимает имя студента и возвращает строку с его средними оценками по всем предметам в формате: `"Alice: math - 85, english - 92, history - 78". Если студент не найден, функция должна вернуть строку "Student not found". map,Задача: УпЗадача: Упиадача: У