Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks like the readme example doesn't work. I didn't compile the djs sayHello function to verify it matches the given javascript, but running sayHello("nyc") spits out

  Hello to undefined, nyc
  You didn't tell me your age
When I'd assume you wanted

  Hello to nyc, Tim
  You didn't tell me your age


The first argument is the name, the second is city.

If you give a third, the second will be your age and the third your city.

Example:

   sayHello('Andreas', 'Berlin')
   sayHello('Andreas', 21, 'Berlin')




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: