Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.






                // Number 1: for 迴圈基本長相
for (let i = 0 ; i < 101; i++){

// Number 2:for ... in 迴圈
var channel = {title:"Super White", anchor:"小白&學長", episode: "20"}; 
var loop;
for (loop in channel) {
  console.log(channel[loop] + "");

// Number 3:for ... of 迴圈
var netflixSeries = ["The Queen's Gambit", "Money Heist", "Emily in Paris"];
var watch;

for (watch of netflixSeries) {

// Number 4:for ... of 迴圈 String 循環
var channelName = "Super White";
var spell;

for (spell of channelName) { 

// Number 5: while 迴圈基本長相
var superWhiteAge = 0;  // 定義初始值
while( superWhiteAge< 101 ) {

// Number 6: do ... while loop
var height = 59;

do {
  console.log("I'm " + height + "-feet-tall.");
while (height < 70);  

// Number 7:九九乘法表 巢狀迴圈
for (let o = 1 ; o < 10 ; o++){
  for (let j = 1 ; j < 10 ; j++){
    console.log(o + ' x ' + j + ' = ', o * j )