I have an assignment on Javascript and I couldnt figure out the rest of the code based on the instructions. Below is the instruction and the attached image is the result(suppose