Skip to content

Instantly share code, notes, and snippets.

@CrazyPython
Created April 10, 2019 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CrazyPython/d23fece19f6cd9b85698bcdb806e25c3 to your computer and use it in GitHub Desktop.
Save CrazyPython/d23fece19f6cd9b85698bcdb806e25c3 to your computer and use it in GitHub Desktop.

A code chunk's lines of code must be in the same order you want them to be when the code is converted for the computer.

<<a>>=
console.log(foo)
@

<<a>>+
var foo = "bar"
@

Foo needs to be set as bar because of blah blah blah...

This is because the above chunk will be tangled into:

console.log(foo) var foo = "bar"

which is not legal JavaScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment