Question: I keep getting an error on my html to link the file. I am not sure what i am doing wrong. With the different files,
I keep getting an error on my html to link the file.
I am not sure what i am doing wrong.
With the different files, do I code in one file or do I have create different files. Or is it different ways I could code? If so why do I need to do different files for task? Compulsory Task
Follow these steps:
Create a new file named inventory.js
Within this file create an object constructor function named Shoes.
Within this object create the following properties:
Name
Product Code
Quantity
Value per item
Then, create five instances of the Shoes object and push all of them to an
array.
Create the following functions that can interact with the array:
A function to search for any shoe within the array.
A function to find the shoe with the lowest value per item.
A function to find the shoe with the highest value per item.
A function to edit all properties for each of the five shoe instances.
A function to order all of the objects in ascending order based on the
"Value per iterm" property.
Keep in mind that when running these functions, all of your outputs should
display all the results in an easytoread manner in the console. Remember
that you can use the console.table method, newline characters, strings,
and template literals to lay out your output in a wellpresented manner.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
