Reputation: 815
Is it possible to replace the function
keyword to something smaller like void
, sub
etc ?
I've seen it being used in libraries like these two:
Upvotes: 0
Views: 133
Reputation: 3414
You can use "typescript" for these things. It is a typed superset of JavaScript that compiles to plain JavaScript. So it is javascript with lots of new features. It is created by Microsoft.
Upvotes: 4