const add1 = x => x + 1;
const double = x => x * 2;
const result = double(add1(3)); // 8Function composition chains functions so the output of one feeds into the next.
Function composition combines simple functions into more complex ones by nesting function calls.
Challenge: Given two functions add1(x) and double(x), compose them manually to create a function that adds 1 then doubles the result.