Skip to content

Commit

Permalink
feat: update sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
danielc92 committed May 6, 2023
1 parent b3fbf1b commit e194374
Showing 1 changed file with 105 additions and 16 deletions.
121 changes: 105 additions & 16 deletions src/sandbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,33 @@ import { hi } from './i';
import { hid } from './i';

class Dasdas {
singlelineA: string;
singlelineS: string;
singlelineD: string;

constructor () {

this.singlelineA = 'DFFAdf';
this.singlelineD = 'DFFAdf';
this.singlelineS = 'DFFAdf';
}

methoda () {
console.log('a');
}

methodf () {
console.log('a');
}

methodaa () {
console.log('a');
}
}

const foo = () => {
const fofo = 'bar';

const ff = '44';

const ff53 = 'f';

const fobar = 'fobar';

if (fobar === fobar) {
Expand Down Expand Up @@ -46,7 +61,9 @@ const foo = () => {
console.log('kh');
}

const arr = [ 1, 2, 3, 45, 6 ];
const arr = [
1, 2, 3, 45, 6
];

const badawat = async () => {
const r = 'lol';
Expand All @@ -55,11 +72,12 @@ const foo = () => {
};

const res = badawat();

const obj1 = { 'daniel': 'email@outloo' };

const dddd = obj1;
const obj1 = {
'daniel': 'email@outloo'
};

const dddd = obj1;
const N = 'Daniel';

console.log(N);
Expand All @@ -70,19 +88,14 @@ const foo = () => {

'apple': 'banan',

'orange': 'orange',
'orange': 'orange'
};

const fo = fobar;

const bademail = 'danieloutlook.com';

const rw = 'faf';

const r = rw;

const badphone = '04123333';

const rr = typeof 333;

const tern = fobar.length > 33
Expand All @@ -93,7 +106,17 @@ const foo = () => {
return 4;
};

const array = [ 1, 2, 3, 4, 445, 555 ];
const array = [
1, 2, 3, 4, 445, 555
];

const oiii = [
1, 2, 3, 4, 445, 555
];

const yuuu = [
1, 2, 3, 4, 445, 555
];

try {
const r = 34234;
Expand All @@ -105,7 +128,7 @@ const foo = () => {
array.push(1234);
}

for ( let index = 0; index < array.length; index++) {
for (let index = 0; index < array.length; index++) {
const element = array[index];

return element + 44;
Expand All @@ -118,6 +141,72 @@ const foo = () => {
}
};

const arr1 = [
1, 2, 2, 3, 3, 3
];

const nnn = {
ar: [
1, 1, 1, 1, 3
],
odd: {
fff: {
dasd: 'asdasd',
asdasd: [
4, 4, 4, 4, 4
]
},
zzz: [
{
adsAS: 'asd',
fasfASF: 'asfafs'
}, {
adsAS: 'asd',
fasfASF: 'asfafs'
}, {
adsAS: 'asd',
fasfASF: 'asfafs'
}
]
}
};

class SampleNode {
data: number;

left: null | SampleNode;

right: null | SampleNode;

constructor (data: number) {
this.data = data;
this.left = null;
this.right = null;
}
}

const somenod = (new SampleNode(4));

const sarr = [
[
1, 2, 2, 2, 2
], [
1, 2, 2, 2, 2
], [
1, 2, 2, 2, 2, 5, 5, 5, 5
]
];

while (sarr.length > 0) {
console.log(sarr);
}

const arr31 = [
1, 2, 2, 1, 1, 1, 1, 3, 3, 3
];

const [ first, second ] = arr1;
const arr2 = [ 3, 3 ];
const nosemi = 'nosemi';

console.log(nosemi);
Expand Down

0 comments on commit e194374

Please sign in to comment.