mongo
version
Changed in version 2.4: In previous versions of the shell, version() would print the version instead of returning a string.
version()