I'm working on Typescript and I don't understand the execution of this program. What are the differences between the fixed and the dynamic parameter.
const appendEmoji = (fixed:string) => (dynamic:string) => fixed + dynamic;
const rain = appendEmoji('️')
const sun = appendEmoji('☀️')
console.log(rain(' today'))
console.log(sun(' today'))
Also I don't understand why we can pute a parameter into the rain function ?