This seems like advanced stuff, But you're using simple vars. You need to be making functions so you can create the function compositions.
Theres a few issues, my friend.
First remove the var x = 4, and you need to change your subtract, multiply and add into functions i would recommend you use arrow notation for this.
Second your pipe statement must be delcared with const pipe =
Third in your pipe statement you used functions and function which is a reserved keyword in JS change these to something else like funcs and func
Lastly in the result remove the 4, then console.log(result(4))
Give it a try, if you still stuggle drop a reply and I’ll help further
steve Purpose This is what made it click for me. Honestly I have not used function composition until I read your post, lol.