Skip to content

Instantly share code, notes, and snippets.

View toreylittlefield's full-sized avatar
👹
A-B-C. A, always; B, be; C, coding. Always be coding! Always be coding! ‍💻

Torey Littlefield toreylittlefield

👹
A-B-C. A, always; B, be; C, coding. Always be coding! Always be coding! ‍💻
View GitHub Profile
@toreylittlefield
toreylittlefield / incrementingstrings.js
Last active July 4, 2022 02:23
Incrementing Strings - Torey
(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")
@toreylittlefield
toreylittlefield / count.json
Created March 7, 2022 07:51
Github Profile Views Count With Glitch Express Server
{}
[
{
"id": 1,
"word": "What is React Js?",
"choices": [
{
"text": "Javascript framework"
},
{
"text": "Javascript library"