3 ms·
> (they shouldn't look like they are) In that case I'd suggest not putting a big "run" button next to them and mixing them in with ones that are "runnable". O
by thejsjunky 14y ago
> (they shouldn't look like they are)
In that case I'd suggest not putting a big "run" button next to them and mixing them in with ones that are "runnable".
Or if you mean "they should look like they will cause a reference error" that would also be wrong - "each example runs with it's own scope" is not obvious.
Keep code that is purely "example code" and code that is intended for functionality demonstration separate. If you need to give example code as part of your explanation of the functionality it should appear with the explanation not in the same box as the demo code.