So I am very new to coding. Please bear with me. We have a SharePoint list wherein we store employee details. The task is to automatically create a new page with predefined UI -every time a new employee is added to the list. So every employee on the list has their own page with their data. How do I go about this? Also, only that particular employee should be able to edit that page, but all other employees should be able to view each other's pages.
Don't think in creating pages;
Think in one (webpart)page that has dynamic content (metadata in your employee list)
Instead of solving it with code if you have a hammer everything starts to look like a nail
First learn what SharePoint is and does..
otherwise your approach is going to be like cooking curry in a pizza parlor
SharePoint often does need a pretty gigantic hammer to do what you want.
It is of course advisable to only create one page with filtered content for the respective user. But that obviously will restrict you in a lot of ways and isn't what you asked for.
Sadly there is no OOTB way to do it. I would recommend these workflow actions, if you are in an environment, where you can use them (easy Installation[Site Settings->Solutions->Upload):