Skip to content

Instantly share code, notes, and snippets.

@bendalton
Created September 6, 2011 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bendalton/1197987 to your computer and use it in GitHub Desktop.
Save bendalton/1197987 to your computer and use it in GitHub Desktop.
javascript for CF Devs... feedback
Overall very well done and I didn't see any technical errors in my read through.
Just a couple of things that I would point out...
for..in loop for an array in JS is possible but will likely provide unexpected results and should probably be avoided in favor of a traditional for loop
http://stackoverflow.com/questions/5263847/javascript-difference-between-for-in-and-for
http://stackoverflow.com/questions/500504/javascript-for-in-with-arrays
JavaScript Arrays are Passed "By reference" vs CF Arrays being passed "By value".
http://www.coldfusionjedi.com/index.cfm/2009/5/1/ColdFusion-and-Pass-by-Reference-versus-Value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment