Examples
Share & Download
Help

Click on a code snippet to copy it into your code editor

Frequently Asked Questions
What is Codecademy Labs?
Right now, Labs is a really easy way for you to play with Ruby, Python, and JS without needing to download an editor. In the future, you'll see more cool experiments on the Labs section of our site.
What are some cool features of Codecademy Labs?
  • It works offline - see what happens when you turn off your internet access in the middle of a session
  • You can share your code snippets with friends and save your session
  • You can download the code you've worked on to play with it on your desktop
  • It works on your iPhone and iPad! (Ruby and Python not yet supported)
What if I don't know how to use one of the languages?
Use Codecademy to learn them! Check out Codecademy courses to see what you can learn or check out the examples by clicking the "ex" button on each page!
Who can we thank for this awesomeness?
Codecademy Labs is the work of the team at Codecademy, the easiest way to learn how to code. Amjad Masad of Codecademy is responsible for much of Labs, a project built on top of his original work with Max Shawabkeh.
I have more questions!
Check out the main Codecademy about page to learn more about us!
Console Shortcuts
Enter
Evaluate the entered command.
Shift+Enter
Continue to the next line.
Tab
Indent.
Shift+Tab
Unindent.
Up
Previous history item.
Down
Next history item.
Ctrl+Up
Move to the line above the cursor.
Ctrl+Down
Move to the line below the cursor.
Ctrl+E
Move to the end of the current line.
Ctrl+A
Move to the start of the current line.
Ctrl+Z
Cancel current prompt.
Ctrl+L
Open languages selector.
Ctrl+G
Open examples preview.
Ctrl+H
Open this help page.
Ctrl+S
Save session (new revision).
Escape
Close current view.
Browser Version Not Supported
Due to Codecademy Labs' reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 13+ Firefox 3.6+ Opera 11.51+
IE 9+ Safari 5+
Let me try anyway!