In this exercise, you will learn to work with json and file system in node:
- JSON
- file system
- Fork this repo
- Clone this repo
Whenever you create a first significant change, you should make your first commit.
- Follow these guidelines to add, commit and push changes.
In the end of this document, you will find guidelines on how to submit the exercise.
Your task is to store the data in a json file automatically from a node file module.
Create a module called question.js with questions, options and answers.
Your task in this progression is to fetch the data from question.js and append it to question.json. In order to do this use the node file system module. You can use
fs.writeFileSync()
Your task in this iteration is to update the json data.
Your task is to stringify the original data and overwrite the original data.
Your task in this iteration is to view the modified JSON data.
If you didn't add, commit and push the changes you made, this is the last call. ๐
please share your github links with your Mentors. Your Mentor's will check up your work and provide feedback.
If you managed to do it, good job! ๐
We are proud of you!
Happy Coding ProGrad โค๏ธ!