title: how to post the price of bitcoin from the API to HTML?
body: <p>I wanted to create an app where there is a function that shows the current Bitcoin price, Requested from the API of <a href="https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCUSD" rel="nofollow noreferrer">https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCUSD</a>. I would like to display it in an h2 element. Do you have any idea how would I do that? TIA</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>const express = require("express");
    const bodyParser = require("body-parser");
    const request = require("request");
  
    const app = express();
  
    app.use(bodyParser.urlencoded({extended: true}));
  
    request("https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCUSD/", function(error, response, body) {
  
  });
  
    res.send("");
  
    app.listen(3000, function() {
    console.log("Server is running on port 3000");
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h2&gt;&lt;/h2&gt;
  
  &lt;form class="" action="/" method="post"&gt;
        &lt;select class="" name="crypto"&gt;
          &lt;option value="BTC"&gt;Bitcoin&lt;/option&gt;
          &lt;option value="ETH"&gt;Etherium&lt;/option&gt;
          &lt;option value="LTC"&gt;Litecoins&lt;/option&gt;
        &lt;/select&gt;
        &lt;select class="" name="fiat"&gt;
          &lt;option value="USD"&gt;US Dollar&lt;/option&gt;
          &lt;option value="GPB"&gt;GB Pound&lt;/option&gt;
          &lt;option value="EUR"&gt;EU Euros&lt;/option&gt;
        &lt;/select&gt;
        &lt;button type="submit" name="button"&gt;check&lt;/button&gt;  
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>