Skip to content

Instantly share code, notes, and snippets.

@agentcooper
Created November 23, 2012 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save agentcooper/fcd584d3a351c3e9728b to your computer and use it in GitHub Desktop.
Save agentcooper/fcd584d3a351c3e9728b to your computer and use it in GitHub Desktop.
<script>
// your code goes here
</script>
<script>
var a = 3;
z = 5;
(function() {
var a = 3 + 5,
b = a / 2,
str = "Inter" + "polation";
z = z + 1;
res = (a + b + z) * 3;
// will output 'Interpolation: (8 + 4 + 6) * 3 = 54'
console.log('#{str}: (#{a} + #{b} + #{z}) * 3 = #{res}'.interpolate());
}).run();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment