Bracket Notation
Bracket Notation
Bracket notation reads the property named by an expression. That means a variable can decide which property to read.
Your task: Use selectedSetting to read the matching value from settings. Store it in settingValue, then log it.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Bracket Notation
Bracket notation reads the property named by an expression. That means a variable can decide which property to read.
Your task: Use selectedSetting to read the matching value from settings. Store it in settingValue, then log it.