I'm trying to multiply two numbers that I've got from 2 inputs within 2 functions.
How can I access the value outside the function?
Is this the correct way of doing it?
At this point, I get NaN at total.

```
let coinName = document.getElementById("coinName");
let nrCoins = document.getElementById("nrCoins");
let inputName = document.getElementById("inputName");
let inputNr = document.getElementById("inputNr");
let inputValue = document.getElementById("inputValue");
let coinValue = document.getElementById("coinValue");
let total = document.getElementById("total");

function coinNamer() {
     coinName.innerHTML = inputName.value;
     inputName.value = "";
}

function nrCoinss() {
     nrCoins.innerHTML = inputNr.valueAsNumber;
     inputNr.value = "";
}

function coinValuee() {
     coinValue.innerHTML = inputValue.valueAsNumber + "$";
     inputValue.value = "";
}

total.innerHTML = nrCoins * coinValue;

```