Congratulations!

Congratulations! You’ve finished the scripted challenges for the “Using Nullables” module.

Return to module overview

Bonus Challenges

If you’d like more challenges, here are a few ideas to try. Before starting these challenges, be sure to take the .only out of _home_page_controller_test.js (or .ts):

describe.only("Home Page Controller", () => {

To complete these challenges, you’ll need to modify HomePageController, homePageView and their tests. The homePageView files are located in the same folder as HomePageController.

400 (Bad Request) Error Page

When the HomePageController receives an invalid form, it logs a warning and returns the home page. A better approach would be to return a 400 (Bad Request) error. Modify the code and tests to do so.

Better ROT-13 Error Messages

Currently, when the ROT-13 service fails or times out, the error message is put in the text field. This isn’t a great user experience. Modify the code and tests to render the error separately from the translation.

Return to module overview