Now that I’ve worked a few things out, I’m going to post some examples of working Javascript functions here: