---
# System prepended metadata

title: functions

---

# functions

```javascript=
// regular function
function sum(a, b) {
    return a + b; // return type
}

function sum(a, b) {
    console.log(a + b) // no return type
}

function Card() {
    this
    
    
    function innerCard() {
      this
    }
}

```

![](https://i.imgur.com/CR8uzc0.png)
