Calculator in commandline using JS