Example quiz. Solve here, then copy all (CTRL-A, then CTRL-C) and paste (CTRL-V) into a separate file to upload for grading. You can use print debugging with document.write() or console.log(). Alternatively, copy and paste to a separate file first, then solve and submit.

javascript programming
example quiz