I am trying to add a github gist to my webpage on the click of a button however the gist is not appearing.
function createGist(gistId = "bd10e846c6eae4419c3041f3da1b82a0"){
var script = document.createElement("script");
script.src = "https://gist.github.com/snakifyanswers/" + gistId + ".js";
document.body.appendChild(script) }
I am left with nothing there even though in inspect element I can see the script object.