JSFiddle - React, Tailwind, and code Playground

by cfarm

JavaScript

// Difficult Mode

// The hiThere function writes to the document using the name provided in the function call (a parameter)
function hiThere(yourName) {
    document.write('Sup ' + yourName);
}

// Get a name to use

//var yourName = prompt('WHO\'S THERE');

// Call hiThere with the name you got

hiThere(prompt('who\'s there???'));