Hacker News new | ask | show | jobs
by plf 5260 days ago
I'm learning CoffeeScript right now, is what I write using it always valid JavaScript?
1 comments

The valid CoffeeScript you write is always valid JavaScript :)
Can there be invalid CoffeScript?
of course, why not? any syntax can be broken.
I meant something that would not be detected when compiling to JavaScript from CoffeeScript. Maybe I got it all wrong and CoffeeScript just translates without performing any checks. Also I thought maybe the subset of code you can write with CoffeeScript can't be invalid, if it were wrong it just wouldn't work.