     END LOOP;
          RETURN result;
      END IF;
  END;
  $$ LANGUAGE plpgsql;
`)

        ret = await pg.exec(`
  SELECT calculate_factorial(5) AS result;
`)
        console.log(ret)
      </script>
      <div id="log"></div>
    </div>
  </body>
</html>
