DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Functions — Example 90

Quick explanation + ready code for: Functions.

Haskell Functions Back to examples
Back to language
Syntax: Functions in Haskell. ID: #90

Code

function add(a,b){ return a+b; }
console.log(add(18, 21));

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.