Home Logic Ubuntu (Linux) Blog PHP Fiddle

NodeJS: Callback Homework

Callback Homework

Solve the following problem, using at least one callback:

Build an app that reads a file (example.json), parses the data using the predefined function JSON.parse().

var parsed_data = JSON.parse(raw_data);

Check out: NodeJS File System.

Questions?

If you have any questions about the homework, Tweet me! Make sure to upload your code to GitHub or GitLab, so you can include the link.