I have been trying to solve this problem for a week and all to no avail, this is my final test, which must be passed before tomorrow. All semester we studied mostly JS appli