Understand Module Pattern described in Code Organization Tutorial
- the variable declarations ($items, $container...) are separated by ";" while the function declarations (createContainer, buildUrl, showItem, ....) are separated by ","...why? Is there a bracket problem?
- why the name of the first three variables ($items, $container and $currentItem) starts with "$" ? Is this imply a naming convention (since javascript allows the character $) used to identify a DOM fragment variable or is there some other reason?
- why the function createContainer is declared using "var" while the other functions (buildUrl, showItem,...) doesn't have "var"?
Thanks in advance
Roberto