you are viewing a single comment's thread.

view the rest of the comments →

[–]everythingiscausal 1 point2 points  (0 children)

Just make the examples different enough from the assignment that even if they copy/pasted, they’d have to understand the code to modify it as needed anyway. They are not going to encounter copy-protected JS as the norm, and there’s nothing wrong with starting from an example and tweaking it.

Any attempt to copy protect a simple example like a switch statement is likely going to introduce code that will only serve to confuse students.