Yashotantra Academy
AI · Blockchain · Cloud · Data
Dark mode active
Learn
Tracks
ABCD
Certification
More
▾
Dark mode active
Learn
Tracks
ABCD
Certification
Study
Theory
Code Lab
Build
Solidity IDE
Staking Sandbox
Simulation
Reference
Wallets
Gas Fees
Explorers
← Code Lab
React Native
0/50 solved · 0%
All lessons
lesson
code
Tooling · easy
15. Selecting environment config
Pick RPC config per environment.
Write `pickConfig(env, configs)` returning `configs[env]`, falling back to `configs.production` if `env` is unknown.
Required in your answer:
??
Reveal solution
Run & check
Reset
Transpiled, then run in a sandbox
function pickConfig(env, configs) { // TODO }
Output appears here.
← 14. Guarding numeric && rendering
16. Filtering debug logs →