Challenge: Proxy Pattern
Explore the Proxy Pattern in JavaScript to create a library kiosk that restricts student access to certain apps and websites. Understand how to implement control mechanisms to allow or deny access, helping you apply structural design patterns effectively in coding interviews.
We'll cover the following...
We'll cover the following...
Problem statement
In this challenge, you have to implement a library kiosk. The LibraryKiosk allows a student to perform two functions:
-
open: allows the student to open an app in the kiosk -
connectTo: allows the student to connect to a website
The definitions for both the functions ...