Hacker News new | ask | show | jobs
by arknave 4322 days ago
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
1 comments

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')