George Colón's Full-Stack Practical Exam

To see the live site use this url: Ernst and Young: test

Installing

If you are cloning this repo and wanted to locally host on your mechine please see instuctions below.

  • After cloning this repo, open a new terminal window then cd to where you cloned this project, then write npm install to add the dependencies.
  • Once the node_modules is downloaded write cd .., then write npm start.

Built With

  • React, CSS, JSX, Netlify, GitHub, NodeJS, NPM, JSON

Practical Exam

We'd like to give you a real-world exercise. Please provide us with the code solution you come up with. If you don't have a final working solution, please show whatever solution you did come up with, what roadblocks there were, etc. The journey can be as important as the destination!

Current State

Attached are three files containing three JSON objects:

  • Object1.json
  • Object2.json
  • Object3.json

The tree structure of each object is identical, except that each item in each JSON object contains a different value for the "value" key; e.g.:

  • "value":"2191"
  • "value":"2336"
  • "value":"2447"

Future State

Using the programming language du jour of your choosing, please write some code that will combine all three objects into a single object, where the "value" node contains the sum from all three objects. In the examples cited above (2191 + 2336 + 2447 = 6974), this particular node would be "value":"6974". All other structural hierarchy needs to remain in-tact.

Not required, but if you can produce a .json file containing the output of the merge, that would help us expedite your results.

Extra Credit

If you want to dress up the results in a visually pleasing format, feel free! This could be HTML, JSX, (S)CSS, etc.

This test is the sole property of EY and may not be shared without EY's express consent. © 2018 All rights reserved.