Click to reopen instructions.

This assessment consists of functions you need to write involving primarily string expressions. It is a closed book assessment. You should stay on this tab until you are done and there should be no talking. This assessment is about how much you understand. There are no automatic tests but you can use the REPL to test things yourself. For example, after defining the firstHalf function and pressing the blue arrow, you can type firstHalf('foobar') in the repl and hit return to see if it evaluates to the expected 'foo'.

You can move through the questions with the arrows at the upper right next to the 1 of indicator so if you're not sure how to write one function move on to another one and come back if you have time at the end. I want to see how much you do know. Note: you can also click on thingsLikeThis in these instructions and the questions to copy them to the clipboard to avoid spelling mistakes. (I.e. click to copy and then ⌘-v to paste wherever you want.)

Some of these functions will be much easier (even trivial) to write if you use the indexOf method I introduced on the latest string functions assignment. To refresh your memory, indexOf takes a single argument, which should be a string, and returns the index at which the sting argument first occurres in the string on which the method is called. It returns -1 if the argument string is not found. For instance if s is our old standby "foobar" then s.indexOf("bar") is 3.

When you are done, please click on your Github username above and submit a GitHub pull request of the branch and request me as a reviewer. Doing this correctly is part of the assessment. If you are unsure how to request a review, please ask for help!

Put definitions here.

Revisions: