There are two types of variables in Power Apps:

  1. Context variables

    Context variables can be used within the same screen only. 

    Syntax: UpdateContext({varName: "Mayuresh Joshi"});

  2. Global variables

    Global variables can be used anywhere in the app

    Syntax: Set(varCountry, "India");