Input/Output Flashcards
1
Q
how do you log information to the console?
A
console.log(var)
2
Q
how do you ask the user for input from the command line?
A
reSync.question()
question() can take an argument which is the string it will display to the user while awaiting input.
3
Q
how do you get user input in a browser environment?
A
let response = prompt(‘what I want to ask)