Javascript: Function Samples (LearnStreet)