Question:

What is the use of Underscore variable in REPL?

Answer:

Use _ to get the last result.

C:\Nodejs_WorkSpace>node
> var x = 10
undefined
> var y = 20
undefined
> x + y
30
> var sum = _
undefined
> console.log(sum)
30
undefined
>

Keywords:

© 2017 QuizBucket.org