Combine Function - Arrow Functions

The combine function accepts the perameter of x and adds x to itself when called. This is a simple function written from scratch for the purposes of this assignment.

Named Function

            function combine(x) {
                return x + x;
            }
        

Function Expression

            const combine = function(x){
                return x + x;
            }
        

Arrow Function

            const combine = (x) => x + x;