I’d like to print my code “side ways” like :
22 : 22
not
- 2
- 2
- :
- 2
- 2
What am I doing wrong ?
Since i have to add more normal language words I will talk about my plans with catgirl coin and I really hope we all make it in crypto.
If we all make it, with my first milly I’m buying my self a house in the country side!!!
I think living there will make me a lot healthier
const data = require("./number.json");
const prompt = require("prompt-sync")();
let someArr = [];
let cnt = 0;
const input = prompt("Please add something here: ");
const b = input.split("");
//extract the numbers in an array
for (let i of b) {
for (let j in data) {
if (i === j) {
someArr[cnt] = data[j];
cnt++;
}
}
}
//printing the stuff
for (let i = 0; i < someArr.length; i++) {
for (j of someArr[i]) {
for (k of j) {
if (k === 0) process.stdout.write(" ");
if (k === 1) process.stdout.write("#");
}
console.log("t");
}
}
Btw my json file looks like this
{
"0": [
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 1]
],
"1": [
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 1, 0, 0]
],
"2": [
[1, 1, 1, 1, 1],
[0, 0, 0, 0, 1],
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 0],
[1, 1, 1, 1, 1]
],
"3": [
[1, 1, 1, 1, 1],
[0, 0, 0, 0, 1],
[1, 1, 1, 1, 1],
[0, 0, 0, 0, 1],
[1, 1, 1, 1, 1]
],
"4": [
[1, 0, 0, 1, 0],
[1, 0, 0, 1, 0],
[1, 1, 1, 1, 1],
[0, 0, 0, 1, 0],
[0, 0, 0, 1, 0]
],
"5": [
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 0],
[1, 1, 1, 1, 1],
[0, 0, 0, 0, 1],
[1, 1, 1, 1, 1]
],
"6": [
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 0],
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 1]
],
"7": [
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 1],
[0, 0, 0, 0, 1],
[0, 0, 0, 0, 1],
[0, 0, 0, 0, 1]
],
"8": [
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 1]
],
"9": [
[1, 1, 1, 1, 1],
[1, 0, 0, 0, 1],
[1, 1, 1, 1, 1],
[0, 0, 0, 0, 1],
[0, 0, 0, 0, 1]
],
":": [
[0, 0, 0, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 1, 0, 0],
[0, 0, 0, 0, 0]
]
}