jashkenas--coffeescript/documentation/js/interpolation_expression.js

4 lines
144 B
JavaScript

var dates, sentence, sep;
sentence = ("" + (22 / 7) + " is a decent approximation of π");
sep = "[.\\/\\- ]";
dates = /\d+#{sep}\d+#{sep}\d+/g;