The purpose of this assignment is to improve your understanding and develop your skills with iteration, one of the foundational concepts of programming and software development. For these exercises, you will need to use for-loops to arrive at the correct solution. You are not to use helper methods like.split()
, substr()
, .reverse()
.
# (1) Go to your muktek/assignments directory and create the `js-object-intermediate` folder for this assignment
cd ~/Documents/muktek/assignments
mkdir js-object-intermediate
cd js-object-intermediate
# (2) Download the assignment-files with curl from the assignment repo and unzip
curl https://raw.githubusercontent.com/muktek/assignment--js-object-intermediate/master/assignment-files.zip > assignment-files.zip
unzip assignment-files
The goal of these exercises is to write the logic in the function to solve the problem. The statements/declarations in the console.assert(...)
describe the expected output from the function when provided with a given input and should evaluate to true if you have written the function correctly.
Here is how you will answer each exercise:
(1) Read the problem
(2) Look at the expected output
- you instructors have written these
console.assert()
statements to ensure that you have written the exercise function correctly
(3) Write the function and the logic
Note
For the ex-01
, ex-02
, and ex-03
you will need to write the functions as methods.