Hello, I'm wondering what is the difference between those two lines of code and which method should be used and why. For example if I will load JSON config using config = require('config.json') then which method should I use to access e.g. apiKey.config['apiKey'] orconfig.apiKey
Submitted September 17, 2020 at 02:01AM by DeBos99
No comments:
Post a Comment