What is the use of the underscore variable in REPL?

Forums JavaScriptWhat is the use of the underscore variable in REPL?
Staff asked 2 years ago

Answers (1)

Add Answer
Kathiriya Pritam Marked As Accepted
Staff answered 2 years ago

The underscore variable in REPL is a special variable that is used to store the result of the last evaluated expression. That means you can access the result of the last expression using this variable.

Subscribe

Select Categories