How to use the questionEmail function from readline-sync
Find comprehensive JavaScript readline-sync.questionEmail code examples handpicked from public code repositorys.
2 3 4 5 6 7 8 9 10 11
// taking string let username = read.question('Enter your name: '); let age = read.questionInt('Enter age: '); console.log(`Name = ${username}, Age = ${age}`); // use read.questionNewPassword('Enter password: ') and print password // use read.questionEmail('Enter email: ') and print email let pass = read.questionNewPassword('Enter password: '); console.log(`Password = ${pass}`); let email = read.questionEMail('Enter email: '); console.log(`Email: ${email}`)
0
0
0
+ 2 other calls in file
readline-sync.question is the most popular function in readline-sync (3769 examples)