CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Calculate Duration

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
♟️ Dependent ticket 🏕 Priority Mandatory 📅 Week 1 🦑 Size Large 🧩 Feature
Dominant language
JavaScript
Stars
1
Forks
28
PR merge metrics
No merged PRs in 30d

Description

**Instructions:**

## Dependent ticket : complete #6 before beginning this

Add another column to your `` table which shows the number of nights a guest is staying.

**Hint:** Try installing the [day.js library](ttps://day.js.org/) (you'll need to install it with `npm install dayjs --save`) and using the [`.diff()` method](https://day.js.org/docs/en/display/difference) to compare dates.

**Test:**

- [ ] Each booking in your table should show the number of nights in a separate column. For example, Mr John Doe has a booking for **2** nights.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.