Baheeg Training and Test Exam

Javascript Advanced level

Score: 0 / 0 answered

Progress: 0 of 869 qs

time elap: 00:00

Question 1: What will be the output of the following code?

function createMultiplier(x) {
  return function(y) {
    return x * y;
  };
}
const double = createMultiplier(2);
console.log(double(4));