diff --git a/classes/Product.js b/classes/Product.js index e69de29..1761df0 100644 --- a/classes/Product.js +++ b/classes/Product.js @@ -0,0 +1,14 @@ +class Product { + constructor(name, price, description){ + this.name = name; + this.price = price; + this.description = description; + this.inStock = true; + } + + display(){ + return `Name: ${this.name}, Price: $${this.price}, Description: ${this.description}` + } +} + +module.exports = Product; \ No newline at end of file diff --git a/index.js b/index.js index efad601..5eb5f68 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,5 @@ // Import Classes Here - - - +const Product = require('./classes/Product');