JavaScript
let name=prompt("Enter name:");
console.log(name);Input in JS, C++, Python, PHP
User input means data given by the user while the program is running.
A teacher asks a student for name or marks. A program also asks the user for input.
Input often comes as text first, so convert to number when needed.
let name=prompt("Enter name:");
console.log(name);string name;
cin>>name;
cout<<name;name=input("Enter name: ")
print(name)<?php
$name=readline("Enter name: ");
echo $name;
?>User types → program stores → output shows.