[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-27 UTC."],[],[],null,["# app | JavaScript SDK\n\n- [firebase](/docs/reference/node/firebase).\n- app\n==================================================\n\n### Callable\n\n- app ( name ? : string ) : [App](/docs/reference/node/firebase.app.App)\n- Retrieves a Firebase [app](/docs/reference/node/firebase.app.App) instance.\n\n When called with no arguments, the default app is returned. When an app name\n is provided, the app corresponding to that name is returned.\n\n An exception is thrown if the app being retrieved has not yet been\n initialized.\n\n example\n :\n\n // Return the default app\n var app = firebase.app();\n\n\n example\n :\n\n // Return a named app\n var otherApp = firebase.app(\"otherApp\");\n\n\n #### Parameters\n\n -\n\n ##### Optional name: string\n\n Optional name of the app to return. If no name is\n provided, the default is `\"[DEFAULT]\"`.\n\n #### Returns [App](/docs/reference/node/firebase.app.App)\n\n The app corresponding to the provided app name.\n If no app name is provided, the default app is returned.\n\nIndex\n-----\n\n### Interfaces\n\n- [App](/docs/reference/node/firebase.app.App)"]]
Retrieves a Firebase app instance.
When called with no arguments, the default app is returned. When an app name is provided, the app corresponding to that name is returned.
An exception is thrown if the app being retrieved has not yet been initialized.
// Return the default app var app = firebase.app();
// Return a named app var otherApp = firebase.app("otherApp");