---
title: Assignment with a Returned Value
---
## Assignment with a Returned Value

<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds  -->
Functions act as placeholders for the data they output. Basically, you can assign the output of a function to a variable, just like any normal data.

Here is the basic code solution:

```javascript
processed = processArg(7); // Equal to 2
```
