For this Question: You are given a function <code>calculate(operation)</code>, with a parameter <code>operation</code>.
Complete the given function <code>calculate</code> by writing functions in it which takes two numbers as  parameter and prints the sum or difference of both numbers in the desired format based on the value of <code>operation</code>Function will take one argument for <code>operation</code> which is in string format.
The sub functions will take two arguments both of which are in integer format 
Function prints the numbers with the operation performed between them and the result which sum/difference of both the numbers based on the value of <code>operation</code>

Format of the string logged on console should be like this

num1 operationSymbol num2 = answer

Note:- Keep in mind the spaces
ADD 3 4  // prints to the console "3 + 4 = 7"

SUBTRACT 10 5  // prints to the console  "10 - 5 = 5"




, I have written this Solution Code: function calculate(operation) {
        switch (operation) {
          case "ADD":
            return function (a, b) {
              console.log(a+b);
            };
          case "SUBTRACT":
            return function (a, b) {
              console.log(a-b);
            };
        }
      }, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?