JavaScript Interpreter Test

Copy and Paste the folowing commands in order:

#simple evaluation:
>>> 7*6
#handling spaces:
>>> 7 * 6
#assignment:
>>> x = 7*6
>>> print x
#auto-indent:
>>> for y in range(11):
>>>     print (x*y)
>>> 
#(note the blank line at the end)
#error handling
>>> import sys
>>> sys.exit()
#(this should not actually exit, but instead catch the error)

Here's another one:


Empty interpreter to editor



Back to the test index