```
f <- function() {
  x <- 6 + 4
  substitute(x)
}
f()

```

The above will output:

```
[1] 10

```

However, the below:

```
x <- 6 + 4
substitute(x)

```

outputs:

```
x

```

Why are they different?