Thursday , September 19 2024

We have defined an arrow function: let multiply = (m, n) => m * n; We will try to write it in a slightly modified form, but without changing what it is supposed to do. Point out the correct definition:

Questions BankCategory: JavaScript Essentials 1We have defined an arrow function: let multiply = (m, n) => m * n; We will try to write it in a slightly modified form, but without changing what it is supposed to do. Point out the correct definition:
We have defined an arrow function:

let multiply = (m, n) => m * n;

We will try to write it in a slightly modified form, but without changing what it is supposed to do. Point out the correct definition:

  • let multiply = (m, n) => {
    	m * n;
    }
  • let multiply = (m, n) => {
        console.log(m * n);
    }
  • let multiply = (m, n) =>
    return (m * n);
  •  {
        return (m * n);
    }

More Questions: JavaScript Essentials 1 – JSE1: Module 5 Test