This isn't really a big thing here. For the first time ever, I tried using the Javascript IF statement short hand inside of an array call. I had no reason to think that this wasn't possible, it's just kind of cool to see it work:
Launch code in new window » Download code as text file »
When I am figuring out which index of the Friends array to call, I determine the value based on the day of the week. It's an IF statement inside of object notation. Again, nothing ground-breaking. Just neat.
Download Code Snippet ZIP File
Comments (0) | Post Comment | Ask Ben | Permalink | Other Searches | Print Page
There are no comments posted for this web log entry.