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 4, 2023
1 parent 909af6f commit f6397e1
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 39 deletions.
54 changes: 54 additions & 0 deletions src/sandbox/i.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
const hi = 'hi';

const hid = 'hi';

const hig = 'hi';

export {
hi, hid, hig
};

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

const fobar = 'fobar';

if (fobar === 'dd') {
console.log('fobor');
}

const n = new Date().getDay();

switch (n) {
case 2:
console.log('haha');
break;
case 5:
console.log('hahaa');
break; case 6:
console.log('hahadd');
break;
default:
console.log('kh');
}

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

const obj1 = { 'daniel': 'email@outloog.com' };

const fo = fobar;

const bademail = 'daniel@outlook.com';

const tern = fobar.length > 33
? 'tern'
: 'terna';

if (tern.length > 0) {
console.log(tern);
}
};

const nosemi = 'nosemi';

console.log(nosemi);
128 changes: 89 additions & 39 deletions src/sandbox/index.ts
Original file line number Diff line number Diff line change
@@ -1,75 +1,125 @@
import { hi } from './i';
import { hid } from './i';

class Dasdas {
constructor () {

}
}

const foo = () => {

const foo = 'bar';
const fofo = 'bar';

const ff = '44';

const ff53 = 'f';

const fobar = 'fobar';

if (fobar === fobar) {

console.log('fobor');

}


const rrr = 'das';

function foo () {
const r = 444;
}

function food () {
const y = 555;
}

const n = new Date().getDay();
switch(n) {

case 2:
console.log('haha');
break;
case 5:
console.log('hahaa');
break;

case 6:
console.log('hahadd');
break;
default:
console.log('kh');


switch (n) {
case 2:
console.log('haha');
break;
case 5:
console.log('hahaa');
break;
case 6:
console.log('hahadd');
break;
default:
console.log('kh');
}

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

const badawat = async () => {

const r = 'lol';

return Promise.resolve(1654984);

};

const res = badawat();

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


const dddd = obj1;

const N = 'Daniel';

console.log(N);

const d = [ 'daniel', 'was' ];

const unsort = {

'apple': 'banan',

'orange': 'orange',
};
console.log(unsort);

const fo = fobar;

const bademail = 'danieloutlook.com';
const badphone = '0412331233';


const rw = 'faf';

const r = rw;

const badphone = '04123333';

const rr = typeof 333;

const tern = fobar.length > 33
? 'tern'
: 'terna';

const somefung = () => {

return 4;

};

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

try {
const r = 34234;
} catch (e) {
console.log(e);
}

while (array.length > 0) {
array.push(1234);
}

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

return element + 44;
}

if (tern.length > 0) {

console.log(tern);
const err = new Error();

throw 'should ntoi be';

}

};

const nosemi = 'nosemi';

console.log(nosemi);
console.log(nosemi);

export {};

0 comments on commit f6397e1

Please sign in to comment.