+ 1

How do you make a code that for example asks your name and then alerts hi and whatever you typed in the prompt box

16th Dec 2016, 2:09 PM
Robert Proaps
Robert Proaps - avatar
2 ответов
+ 7
name=input() print("hi",name) #this is python
17th Dec 2016, 10:42 AM
Ahri Fox
Ahri Fox - avatar
+ 2
var user = prompt ("What is your name?"); alert ("Hi" , user); This is the JavaScript version
17th Dec 2016, 4:46 PM
Trevor Tucker
Trevor Tucker - avatar