/* Make multiple functions that will return the sum, difference, modulus, product, quotient, and the exponent respectively. Please use the following function names: addition = add multiply = multiply division = divide (both integer and float divisions are accepted) modulus = mod exponential = exponent subtraction = subt Note: All math operations will be: a (operation) b */ function add(a,b){ return a + b; } function divide(a,b){ return a / b; } function multiply(a,b){ return a * b; } function mod(a,b){ return a % b; } function exponent(a,b){ return a ** b; } function subt(a,b){ return a - b; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter