How can I call person's name? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How can I call person's name?

How if i want to call the first function.

1st Jan 2019, 10:10 PM
Ariel
Ariel - avatar
1 Resposta
+ 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')
1st Jan 2019, 11:39 PM
Roel
Roel - avatar