What is the use of underscore variable in repl?



What is the use of underscore variable in repl?..

Answer / Nitin Giri

The `_` variable in Node.js REPL (Read-Eval-Print Loop) is used as a shorthand for the previous value returned by an expression.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

Can you create http server in nodejs, explain with code

1 Answers  


Explain event loop in node js?

1 Answers  


What we use buffer class in node.js?

1 Answers  


Give an example of writable stream in node.js?

1 Answers  


Using the event loop what are the tasks that should be done asynchronously?

1 Answers  


What is Child Process and Cluster? What are the difference?

1 Answers  


What is the passport in Node.js?

1 Answers  


Why to use Express?

1 Answers  


List out the properties of process?

1 Answers  


For what require() is used in node js?

1 Answers  


What is the disadvantages of node.js?

1 Answers  


What is the difference between events and callbacks in node.js?

1 Answers  


Categories