Client VS Server instance | Sololearn: Learn to code for FREE!


Client VS Server instance

Lets say I have a website and a user has a certain amount of virtual credits. Where is the user’s balance from the user’s perspective? If the user, for example, opened a client-side viewer like inspect element, would the balance be on the client, server, or both?

1/23/2018 12:59:09 AM


1 Answer

New Answer


On server. This data must be hidden from user, as the code which returns it. Client-side *asks* server to get this data and only *outputs* the result