for (var b =0; b < ""; b++ ) { var code = ""; } Basically, I'm trying to access a property of my handlebars object in a for loop. However, the code aboves prints out nothing as the variable, code is assuming b to be the name of the key i m trying to access.i m trying to access the value of b, which is a dynamic number that is can be from 0 - 5. How do I get my code to read b's value instead of the letter b itself.Thank you for the feedback!ps: I tried accessing it using module[b] but it doesn't work, assuming its a handlebars thing that prevents this.
Submitted July 17, 2019 at 11:27AM by Possible_Hawk
No comments:
Post a Comment