DYNAMIC JAVASCRIPT IMPORT WITH AJAX
Run
<script>
// create an XMLHttpRequest object
var xhr = new XMLHttpRequest();

// open a GET request to the script URL
xhr.open("GET", "https://raw.githubusercontent.com/prudhvidendukuri/greetingsInJs/main/script.js");

// set the response type to text
xhr.responseType = "text";

// define a callback function that runs when the request is done
xhr.onload = function() {
    // use eval to execute the response text as code
    eval(xhr.responseText);

    // now you can use anything you defined in the loaded script
    
};

// send the request
xhr.send();
</script>