Power Apps offers global variables (Set), context variables specific to a screen (UpdateContext) and collections (Collect, ClearCollect), local in-memory tables. They keep state during the app session and do not persist on their own.
Example
Set(varNom, TextInput1.Text)