Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* I use this variable on my first javascript file. The synthax is a bit weird, an array with a map in it, but I think jQuery uses this for templates */
  2. var translate_en = [
  3. {
  4.     /* Basic values */ 
  5.                                                                                                  
  6.     workExperienceMonths:           ['January','February','March','April','May','June','July','August','September','October','November','December'],
  7.    
  8.     /* Some more values */
  9. }
  10. ];
  11.  
  12. /* In my secodn javascript file, that is mapped to the first javascript file, I want to retrieve the workExperienceMonths variable
  13.  * It keeps telling me it cannot find the workExperienceMonths. I probably need to call it in a different manner. This is what I try:
  14.  */
  15.  
  16. for(i=0; i<currentLanguage.workExperienceMonths.length; i++) {
  17.     doStuff();
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement