Challenge: Solution Review
Explore the proxy design pattern by reviewing a JavaScript solution that restricts students' access to certain apps and websites through a library kiosk interface. Understand how the proxy controls access, blocks restricted resources, and optimizes requests. This lesson solidifies your grasp of structural patterns for coding interviews.
We'll cover the following...
We'll cover the following...
Solution #
Explanation
In this challenge, you had to implement the proxy pattern, such that it restricted the use of the kiosk to access apps/websites for the students. As mentioned in the problem statement, a student can access/connect to any app/site using the LibraryKiosk class.
class LibraryKiosk{
open(app){
...