What would be the equivalent of "with" Javascript in Coffeescript

0

Hello, I was studying this new "language" that looks promising when I came across it. Is not this expression in Coffeescript or something similar?

    
asked by anonymous 24.03.2017 / 14:07

1 answer

2

CoffeeScript has eliminated the use of with , if you try to use you will get a syntax error message.

The actual use of with in javascript is not recommended, it is considered deprecated and should be removed in the near future.

In this O'Reilly reference book for CoffeeScript the author uses with as an example of parts of the javascript that CoffeeScript anticipated and removed.

    
24.03.2017 / 14:35