Write a function names
getExamResult that accepts the students marks of three subjects as arguments and returns the strings "pass" or "fail" depending on whether he has passed or failed .For passing the average score should be greater than or equal to 40. Please use the ternary operator to solve this question. Dont use if-else.
// Write your function here function ... // Here we will test our function with some input values let geometryScore = 55; let historyScore = 15; let englishScore = 48; console.log(getExamResult(geometryScore, historyScore, englishScore));