Does my ruby on rails app have to use coffeeScript or could I can I Just use plain javaScript?
4 Answers
You can also write plain JS in CoffeeScript files, just put ` around it:
hi = `function() {
return [document.title, "Hello JavaScript"].join(": ");
}`
1 Comment
user2553863
In other words, you can have BOTH JS and CoffeeScript in the same .coffee file, if you enclose your JS code in backticks. Thanks, Qasim.