I have this:

```
const exp = function (input) {
  let v;
  return (v = input.foo.bar) ? v : 'bar' 
};

```

I am wondering, if there is a way to put the temporary variable on the same line, something like this:

```
const exp = function (input) {
  return let v, (v = input.foo.bar) ? v : 'bar' 
};

```

that's not valid syntax tho. JS runtime says "cannot find name v".