Project: lb_bc

Node.js·1 min read·Apr 17, 2025

calculator illustration

In Unix, the bc utility is used to evaluate arithmetic expressions and output their result to the standard output.

The objective of this project is to write a Node.js command-line script that partially reimplements the bc utility.

General instructions

Here are the general instructions to complete this project:

  1. The script must be named lb_bc.js.

  2. The script must be written in Node.js.

Reading positional arguments

The objective of this part is to implement a script that evaluates an arithmetic expression provided through the CLI.