I've been scratching my head for hours trying to figure this out. But hours later,still no luck. So I've created a function but when I run the code it says im getting a Reference error and saying...