Babel includes JSX processing.
Any URL's added here will be added as
Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.Upgrade to PRO
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.
Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:
Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.
var s = "Hello, I wrote a word here!"; var a = /word/.test( s )? "word found!": "word not found." ; //alert( a ); var s2 = "I like writing words."; var a2 = /word/.test( s2 )? "word found - WRONG!": "word not found." ; //alert( a2 ); var a3 = /\bword\b/.test( s2 )? "word found!": "word not found - RIGHT!" ; //alert( a3 );
Also see: Tab Triggers