Chapter 1
Concepts of Universal JavaScripts
Section 5
Using Abstractions
In this video we’ll dive deeper into building Abstractions to better share code between the browser and server. We’ll create two abstractions that are frequently needed by universal JavaScript applications: getting and setting cookies, and redirecting requests. These abstractions provide a consistent API across the client and server by encapsulating environment-specific implementation details. - Provide a consistent API across the client and server by encapsulating environment-specific implementation details. - Universally getting and setting cookies universally. - Universally redirecting requests.