<nav>
<input type="checkbox" name="menu" id="btn-menu"/>
<label htmlFor="btn-menu">☰</label>
<div class="flex">
<ul>
<li><a href="#">ПОДДЕРЖКА</a></li>
<li><a href="#">ДИСКОРД</a></li>
<li><a href="#">СТАТУС</a></li>
<li><a href="#">КАТАЛОГ</a></li>
<li><a href="#">КУПИТЬ</a></li>
</ul>
<ul>
<li><a href="#" style={{boxShadow:'white 0 0 1px 1px', margin:'0 10px'}} className="1px">ВОЙТИ</a></li>
<li><a href="#" style={{boxShadow:'white 0 0 1px 1px'}}>РЕГИСТРАЦИЯ</a></li>
</ul>
</div>
</nav>
.flex {
display: flex;
justify-content: space-between;
}
const calculateTeamFinanceReport = (salaries, team) => {
const res = { sumAllSalary: 0 };
for (const employee of team) {
if (!res.hasOwnProperty(employee.specialization)) {
res[employee.specialization] = salaries[employee.specialization].salary;
} else {
res[employee.specialization] += salaries[employee.specialization].salary;
}
res.sumAllSalary += salaries[employee.specialization].salary;
}
return res;
};
function countPositivesSumNegatives(input) {
// your code here
let positiveCount = 0;
let summOfNegativeCount = 0;
if (input.length === 0) {
return [];
}
input.forEach((el) => {
if (el > 0) {
positiveCount += 1;
}
if (el < 0) {
summOfNegativeCount -= -el;
}
});
return [positiveCount, summOfNegativeCount];
}