Top "Coffeescript" questions

CoffeeScript is a language that compiles into JavaScript.

Exec : display stdout "live"

I have this simple script : var exec = require('child_process').exec; exec('coffee -cw my_file.coffee', function(error, stdout, …

node.js coffeescript
Ternary operation in CoffeeScript

I need to set value to a that depends on a condition. What is the shortest way to do this …

javascript coffeescript ternary-operator
How to iterate over the keys and values in an object in CoffeeScript?

I have an object (an "associate array" so to say - also known as a plain JavaScript object): obj = {} obj["…

javascript coffeescript
Null-safe property access (and conditional assignment) in ES6/2015

Is there a null-safe property access (null propagation / existence) operator in ES6 (ES2015/JavaScript.next/Harmony) like ?. in CoffeeScript for …

javascript coffeescript ecmascript-6 babeljs
React input defaultValue doesn't update with state

I'm trying to create a simple form with react, but facing difficulty having the data properly bind to the defaultValue …

javascript forms reactjs coffeescript 2-way-object-databinding
Uploading base64 encoded Image to Amazon S3 via Node.js

Yesterday I did a deep night coding session and created a small node.js/JS (well actually CoffeeScript, but CoffeeScript …

javascript node.js amazon-s3 coffeescript
How do I comment in CoffeeScript? "/* this */" doesn't work

In what ways can you comment in CoffeeScript? The documentation say you can use three hash symbols to start and …

coffeescript code-formatting comments block-comments
how to write setTimeout with params by Coffeescript

Please tell me how to write javascript below in coffeescript. setTimeout(function(){ something(param); }, 1000);

javascript settimeout coffeescript
In CoffeeScript how do you append a value to an Array?

What is the prescribed way to append a value to an Array in CoffeeScript? I've checked the PragProg CoffeeScript book …

arrays append coffeescript
Can I use CoffeeScript instead of JS for node.js?

What are my restrictions if I want to code node.js and use CoffeeScript? Can I do anything I'd be …

javascript node.js coffeescript