user1431627
user1431627

Reputation: 815

Replace JavaScript's function keyword

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

Answers (1)

the_bluescreen
the_bluescreen

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.

Typescript Official Webpage

Upvotes: 4

Related Questions