Quiz 4 BSAI

Set up a route at in express ejs application

This route should:

  • Accept two numbers as route parameters (num1 and num2).
  • Convert them to integers.
  • Calculate their sum.
  • Pass the original numbers and the result to an EJS view.

The EJS view should:

  • Display a message like:
    "The sum of <%= num1 %> and <%= num2 %> is <%= sum %>"