Mode:
Duration:
1
2
3
4
a = 10
b = 20
sum = a + b
console.log "Sum: #{sum}"Coding works best on desktop or with an external keyboard.
a = 10
b = 20
sum = a + b
console.log "Sum: #{sum}"Coding works best on desktop or with an external keyboard.
Adds two numbers and prints the result.
a = 10
b = 20
sum = a + b
console.log "Sum: #{sum}"CoffeeScript is a lightweight, compiled programming language that transcompiles into JavaScript. It aims to enhance JavaScript’s readability and brevity by providing a cleaner syntax, inspired by Ruby and Python, while maintaining full compatibility with existing JavaScript code.
Origin & Creator
CoffeeScript was created by Jeremy Ashkenas in 2009 to simplify JavaScript development and improve code readability.
Industrial Note
CoffeeScript was widely adopted in web development frameworks, frontend build pipelines, and Node.js projects before the advent of ES6+, serving as a cleaner abstraction over JavaScript for production code.