Andrejs is a self-motivated newbie to IT who is looking for an opportunity to start a career as a front-end developer. Has many years of experience in a team of engineers. Working in stressful situations with tight deadlines is nothing new to him. With a good aptitude to learn a new technologies and technical documentation reading. Currently self-learning, interested in creating and participating in commercially viable scalable projects.
Write a function that takes two sets of arguments of arbitrary length. The return value will be the sum of the values of all of the arguments.
The function should contain at least 1 argument per set.
function calculate(set1) {
let arg = arguments;
return function(set2) {
return [...arg, ...arguments].reduce((acc, currNum) => {
return (acc += currNum);
}, 0);
}
}
Study and pet projects using CSS, JS, ReactJS, Redux, RTK, TypeScript.
Electrical engineer, Logistics specialist, Estimator