2018-10-12 15:37:13 -04:00
---
title: Passing Values to Functions with Arguments
---
2019-07-24 00:59:27 -07:00
# Passing Values to Functions with Arguments
---
## Problem Explanation
2018-10-12 15:37:13 -04:00
Our task is to create a function that has **parameters** . These are inputs that determine the function's output. You place paramaters inside the `()` , like so:
```javascript
function functionWithArgs(one, two) {
console.log(one + two);
}
```
2019-07-24 00:59:27 -07:00
We now have to add code inside the brackets. Our task is to add `one` and `two` , and print the sum to the console.
2018-10-12 15:37:13 -04:00
```javascript
functionWithArgs(7, 3);
//This will console log 10.
```