Basic JavaScript Authorization

Easy
6
1
63.6% Acceptance

In this lab, you will be creating a simple authorization system using JavaScript. You will create a function that checks if a user has Admin rights based on their role. You will start by creating an index.html and script.js file and linking them together. Then, define and export the checkAuth function which checks the user role and returns true if the role is 'admin', otherwise false.