Coder Social home page Coder Social logo

project-builder-node-quiz-stage-1's Introduction

Image description

PROGRAD PROJECT BUILDER | NODE | QUIZ - STAGE - 1 - WORK WITH JSON AND FILE SYSTEM

Learning Goals

In this exercise, you will learn to work with json and file system in node:

  • JSON
  • file system

Getting started

  1. Fork this repo
  2. Clone this repo

Whenever you create a first significant change, you should make your first commit.

  1. 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.

Instructions

Your task is to store the data in a json file automatically from a node file module.

PROGRESSION 1 | question.js

Create a module called question.js with questions, options and answers.

PROGRESSION 2 | index.js

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()

PROGRESSION 3 | UPDATE THE JSON

Your task in this iteration is to update the json data.

PROGRESSION 4 | STRINGIFY THE ORIGINAL DATA

Your task is to stringify the original data and overwrite the original data.

PROGRESSION 5 | VIEW THE JSON

Your task in this iteration is to view the modified JSON data.

Submission

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.

Summary

If you managed to do it, good job! ๐Ÿ†

We are proud of you!

Happy Coding ProGrad โค๏ธ!

project-builder-node-quiz-stage-1's People

Contributors

ashwinrames avatar prograd-org avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.