what is the differences between Server-side and Client-side code?

Server-side code executes on the server. Client-side code executes in the context of the clients’ browser.