You should have completed Week 4 Lab and uploaded LabFunctions-04.js to your 111/p3 folder on the UO Pages server.

computer science

Description

Complete each of the following requirements. 

Step 1. 111/p3/LabFunctions-04.js: 

Lab 4 You should have completed Week Lab and uploaded LabFunctions-04.js to your 111/p3 folder on the UO Pages server. 


Step 2. 111/debug/arraysObjects.js and 111/debug/arraysObjects.html: Lab 5 You should have completed Week 5 Lab and uploaded arraysObjects.js and arraysObjects.html to your 111/debug folder on the UO Pages server. 


Step 3. 111/p3/catalog.js: padString function Create a function called padString(data, maxLength, padCharacter, padLeft) that returns data padded with padCharacter, either to the left (before data) or the right (after data) based on padLeft, up to maxLength. The function must be saved in a file called catalog.js. data: Data to be padded, consider using String() to assist in performing length calculations if data is not a string maxLength: The numerical maximum length of padding and data combined, and no padding if the length of the data equals maxLength padCharacter: The string padding character (e.g. space) padLeft: Boolean true or false, where true means pad to the left of data, and false means pad to the right of data

Instruction Files
Project3.pdf
273.6 KB

Related Questions in computer science category