function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Why can't we use private variables on visualforce pages?

If  we can't use private variables on visualforce pages then where we can use it ?

Best Answer chosen by Admin (Salesforce Developers) 

Private keyword is used when you don't want the variable to be accessed or modified outside the apex class where it is defined. More info here