Explain Your Harbor Line Types

In the last exercise, Harbor Line’s owners told you a crossing can now sell out, and you added a full state to a model that already worked. The checker listed the places that needed it, and you handled each one. All four steps of the project are done.

Passing tests show that your code works. They don’t show that you could defend your types to a teammate or change them with confidence next month. In this review, you’ll explain in your own words why your crossings and tickets are shaped the way they are. Then you’ll make a change to them that no exercise has asked for. Start by opening your own project.

Get Your Harbor Line Project Ready

The review is about the code you wrote, so you need your files and a terminal where you can run the check. The exercises can’t run tsc, so this part happens in your own harbor-line folder.

Open the folder and have these ready:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.