Skip to content

A Node.js project to demonstrate refactoring from callback-based code to Promises and Async/Await.

Notifications You must be signed in to change notification settings

Anupam-03/Week-3_Assignment_Celebal-Summer-Internship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Week-3_Assignment_Celebal-Summer-Internship

Convert callback-based code to Promises and Async/Await.

  • Refactor an existing piece of code that uses callbacks for async operations to use Promises and Async/Await for better readability and error handling.

Node.js refactoring code

This is a Node.js project that demonstrates refactoring code from callbacks to Promises and Async/Await for better readability and error handling.

Getting Started

Files

  • callback.js: Original callback-based implementation
  • index.js: Refactored implementation using Promises and Async/Await

Prerequisites

  • Node.js installed

Installation

  1. Clone the repository:
    git clone https://github.com/Anupam-03/Week-3_Assignment_Celebal-Summer-Internship.git
    cd Week-3_Assignment

About

A Node.js project to demonstrate refactoring from callback-based code to Promises and Async/Await.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published