Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
2
Newest
 Supporter
Impact
~497 people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Feb
16
comment What is your most unusual javascript concept you've ever seen?
@ChrisF, I see.
Feb
16
comment What is your most unusual javascript concept you've ever seen?
@Anna, I thought the "community wiki" posts existed for that reason.
Feb
16
comment What is your most unusual javascript concept you've ever seen?
@capdragon, oh yes sorry. You actually call the getter function and passes something in parameter. The function will match input against a literal object and if found, returns it's value. If not found, it will check if you have defined something and will return it or return the default value instead. getter('foo2') == 'bar2', getter('somethingelse') == 'something else', getter() == 'default'. I have seen that somewhere but I haven't used that concept yet.
Feb
16
comment What is your most unusual javascript concept you've ever seen?
Yes indeed it's very clean.
Feb
3
awarded  Supporter
Feb
3
awarded  Student
Feb
2
asked What is your most unusual javascript concept you've ever seen?