title: my currency converter question is i a need function to convert rand(ZAR) to pound, dollar, and euro
body: <p>I need to put in a certain amount of rands and get back euro, pound, and dollar.</p>
  <p>The rest of my code does have the link to the javascript file. I've only put the dollar() function in for now because I was at least trying to get one to work but it didn't so I need help.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function dollar() {
    let money = document.getElementbyId("rand").value;
    const $ = 15.5734;
    document.getElementById('result').innerHTML = $ * money;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form&gt;
    Rand: &lt;input type="number" id="rand"&gt;
    &lt;input id="dollar" type="button" onclick="dollar()" value="dollar"/&gt;
    &lt;input id="euro" type="button" onclick="euro()" value="euro"&gt;
    &lt;input id ="pound" type="button" onclick="pound()" value="pound"&gt;
  &lt;/form&gt;
          
  &lt;p&gt; result is: &lt;span id="result"&gt;&lt;/span&gt; &lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>