.wrapper
width: 500px
height: 300px
color: #333
.big
width: 800px
height: 300px
color: #333
a
color: red
font-size: 24px
font-family: ’Arial’
&:active
font-family: ’Arial’;
.tall
width: 500px
height: 900px
color: #666
a
color: green
font-size: 15px
font-family: ’Arial’
&:active
color: green
font-size: 24px
a
font-family: ’Arial’
color: red
font-size: 15px
&:active
font-family: ’Arial’
font-weight: bold
color: red
JavaScript
var text = "";
var i;
for (i = 0; i < 10; i++) {
//untuk yg x = 2
text += Math.floor(2*2**i);
//untuk yg x = 3
// text += Math.floor(3*2**i);
}
alert (text)
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.