Goal 2 Assignment JS Practice

Created the functions for each problem