JavaScript Input & Output
JavaScript provides different ways to interact with users and display information.
Console Output
The most common method is:
console.log("Hello");
Browser Input
You can use:
prompt("Enter your name:");
The prompt() function displays a dialog box asking the user for input.