Build a Cash Register Project - Build a Cash Register

Tell us what’s happening:

I want to reset this Project i.e. Cash Register App. The option for reset is not available here. Please help me

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cash Register</title>
    <h1>Cash Register</h1>
    <label for="cash">Cash Provided:</label>
    <input type="number" id="cash" name="cash">
    <button id="purchase-btn">Purchase</button>
    <div id="change-due"></div>

    <script src="script.js"></script>

/* file: styles.css */

/* file: script.js */
// Accessing necessary elements
const cashInput = document.getElementById('cash');
const calculateBtn = document.getElementById('calculate-btn');
const changeDueDisplay = document.getElementById('change-due');
const cashProvided = Number(cashInput.value);
const price = 19.5
if(cashProvided < price){
    alert("Customer does not have enough money to purchase the item")

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Build a Cash Register Project - Build a Cash Register

hello and welcome to fcc forum :slight_smile:

i would say to finish whats been asked in instructions first and then adding on some other adjustments

happy coding :slight_smile:

the starting code is nothing, so you can reset yourself by deleting everything you have written in the three files