function pipe() {
// Implement code here
}
const double = (x) => x * 2;
const square = (x) => x * x;
const cube = (x) => x ** 3;
// const value = pipe(double, cube, square)(2); // output 4096
// console.log(value);
Keep the pipe function as generic as possible..
Keep the pipe function as generic as possible..