my picture

Nataliya Krylova

JUNIOR FRONT END DEVELOPER


My CV

About me

I am a curiouse and motivated person, apassionated of Web Development.

My strengths are:

  • flexible by nature and can quickly adapt to changing situations, quickly find a common language with people,
  • meticulous and attentive to details,
  • persistent and diligent, capable dedicate hours and hours to resolve a task.

Education


Code example

Combine objects

Your task is to write a function that takes two or more objects and returns a new object which combines all the input objects. All input object properties will have only numeric values. Objects are combined together so that the values of matching keys are added together.

An example:

const objA = { a: 10, b: 20, c: 30 }

const objB = { a: 3, c: 6, d: 3 }

combine(objA, objB) // Returns { a: 13, b: 20, c: 36, d: 3 }

    function combine(...objs) {
      const result =
        {};
      objs.forEach(obj  => {
        for (let prop in obj) {
          result[prop] =
            result.hasOwnProperty(prop)
            ? result[prop] + obj[prop]
            : obj[prop];
        }
      });
      return result;
    }
                

My Projects