Simple JS User Input Program

%%js

// Prompt the user for input and store it in a variable
var userInput = prompt("Enter something:");

// Display the user's input
if (userInput !== null) {
    console.log("You entered: " + userInput);
} else {
    console.log("No input provided.");
}