Created
May 12, 2024 16:58
-
-
Save TheShubhamVsnv/8ea4edaab9ecaa07b285b63b0d50adf3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LWC | |
let userPreferences = new Map(); | |
userPreferences.set("theme", "dark"); | |
let theme = userPreferences.get("theme"); // Retrieve user's theme preference | |
// Aura Component | |
let userSettings = new Map(); | |
userSettings.set("language", "English"); | |
let language = userSettings.get("language"); // Retrieve user's language preference |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment