JSFiddle - React, Tailwind, and code Playground
by pamselle
JavaScript
// The hiThere function writes to the document using the name provided in the function call (a parameter)
var hiThere = function(name){
document.write('Howdy there ' + name + '!');
};
// Get a name to use
promptName = window.prompt('What\'s YOUR name?');
// Call hiThere with the name you got
hiThere(promptName);