0
How can I call person's name?
How if i want to call the first function.
1 Antwort
+ 2
If person is a class/object you could refer to it as person.name
If person is an array you could refer to it as array[name's index]
If you just want to know the user's name you coud var username = prompt('enter your name')