Home > Frontend Engineering and Javascript > Intermediate Javascript Concepts > Pure Functions in JavaScript Show previous contentLet's test your knowledge. Click the correct answer from the options.Code snippet 2: JAVASCRIPT1var a = 5; 2var b = 7; 3function average(a, b) { 4 return a + b / 2; 5}Click the option that best answers the question.Pure Impure Show following content