RosettaCodeData/Task/Function-definition/JavaScript/function-definition-6.js
2024-10-16 18:07:41 -07:00

8 lines
237 B
JavaScript

var multiply = (a, b) => a * b;
var multiply = (a, b) => { return a * b };
// Or, `var` being long deprecated, and currying convenient,
// (particularly in use with the higher-order Array methods)
const multiply = a =>
b => a * b;