-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
143 additions
and
39 deletions.
There are no files selected for viewing
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
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); |
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
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 {}; |