made with esnextbin
Last active
March 16, 2017 15:39
-
-
Save ImadBoumzaoued/a99cd36ce2014b1f1b07573bd9b65a4b to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
</head> | |
<body> | |
<!-- put markup and other contents here --> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const num = 6; | |
let str = ''; | |
for(let i = 0; i < num; i++) { | |
for(let j = 0; j < num; j++) { | |
if(j + i >= num - 1) str += '*'; | |
else str += ' '; | |
} | |
str += '\n'; | |
} | |
console.log(str); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var num = 6; | |
var str = ''; | |
for (var i = 0; i < num; i++) { | |
for (var j = 0; j < num; j++) { | |
if (j + i >= num - 1) str += '*';else str += ' '; | |
} | |
str += '\n'; | |
} | |
console.log(str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment