Compare JavaScript, TypeScript, and PureScript to understand their functional programming capabilities.