How to CoffeeScript on Browser
For using coffeescript on an html page, we’ll first need to load the coffeescript core compiler. Should note that the js file meant for the node environment doesn’t work on the browser
where can you get the coffeescript core compiler to use on your browser? link to it is on the coffeescript homepage under the “Installation” section (an image for reference shown below)
After getting the compiler, link to it on your html file like you normally do.
WHERE TO PUT IT
type attribute’s value
IN THE SAME HTML ITSELF
<script type="text/coffeescript"> alert "coffee" </script>
<script type="text/coffeescript" src="script.coffee"></script>
# the <script.coffee> file alert "coffee"