Input/Output Flashcards

1
Q

how do you log information to the console?

A

console.log(var)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how do you get user input in a browser environment?

A

let response = prompt(‘what I want to ask)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly