Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 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 */
- var translate_en = [
- {
- /* Basic values */
- workExperienceMonths: ['January','February','March','April','May','June','July','August','September','October','November','December'],
- /* Some more values */
- }
- ];
- /* In my secodn javascript file, that is mapped to the first javascript file, I want to retrieve the workExperienceMonths variable
- * It keeps telling me it cannot find the workExperienceMonths. I probably need to call it in a different manner. This is what I try:
- */
- for(i=0; i<currentLanguage.workExperienceMonths.length; i++) {
- doStuff();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement