Skip to content

Files

lesson_06

Lesson 06: Statements and Variables (Slides)

Pre-work

Please review the following resources before lecture:

Homework

Expression Calculator

For this assignment, you will need to implement the functions and logic required to calculate a mathematical expression. After implementing the add, divide, and multiply functions, you will combine these functions to compute the final result.

  1. Update the .env.test file to configure the correct homework version.
# Example config for students assigned to homework "D".
HW_VERSION=D
  1. Run the program to determine the expression you must implement.
npm install
npm run compile
npm start
  1. Update the code in the expression_calculator.ts file.
  2. To check your work, you can run the application using the first command below and run the tests using the second one.
npm start
  1. As usual, make sure that you format your code and run the check command before creating your pull request.
npm run check
  1. You must only submit changes to the expression_calculator.ts file to receive full credit.