How to print a variable on MongoDB command line?

How to print a variable on the MongoDB command line. Incredibly, I can't figure it out.

+7
source share
1 answer
> var i = 0; > i 0 > print(i) 0 > 

Use either as needed. It happens among the best;)

+15
source

All Articles