View incrementingstrings.js
This file contains 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
(function (n) { | |
for (let i = 0; i < n + 1; i++) { | |
const remainder = n - i; | |
const string = Array.from({ length: n }, (_, index) => { | |
return remainder <= index ? i : ' '; | |
}).join(''); | |
console.log(string); | |
} | |
/* console.log(" 1") | |
console.log(" 22") |
View count.json
This file contains 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
{} |
View gist:9a267a75aa8193abd339c20191a137ad
This file contains 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
[ | |
{ | |
"id": 1, | |
"word": "What is React Js?", | |
"choices": [ | |
{ | |
"text": "Javascript framework" | |
}, | |
{ | |
"text": "Javascript library" |