This file contains hidden or 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
| class Parent { | |
| constructor(params) { | |
| Object.assign(this, params); | |
| } | |
| static fabric() { | |
| return new Parent({ source: 'fabric', test: 1 }); | |
| } | |
| title() { |
This file contains hidden or 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
| setTimeout(function timeout() { | |
| console.log('timeout'); | |
| }, 0); | |
| let p = new Promise(function(resolve, reject) { | |
| console.log('create promise'); | |
| resolve(); | |
| }); | |
| p.then(function() { | |
| console.log('resolve promise'); | |
| }); |
This file contains hidden or 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
| const obj1 = { | |
| a: 1, | |
| b: 2, | |
| c: 3 | |
| }; | |
| const obj2 = { | |
| a: 10, | |
| b: null, | |
| c: undefined, |
This file contains hidden or 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
| async function sleep(time) { | |
| return new Promise((resolve) => setTimeout(resolve, time)); | |
| } | |
| async function PromiseAll(args) { | |
| args.forEach(async func => { | |
| await func(); | |
| }); | |
| } |
This file contains hidden or 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
| class Parent { | |
| constructor(params) { | |
| Object.assign(this, params); | |
| } | |
| static fabric() { | |
| return new Parent({ source: 'fabric', test: 1 }); | |
| } | |
| title() { |
This file contains hidden or 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
| class Parent { | |
| constructor(params) { | |
| Object.assign(this, params); | |
| } | |
| static fabric() { | |
| return new Parent({ source: 'fabric', test: 1 }); | |
| } | |
| title() { |
This file contains hidden or 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
| class Parent { | |
| constructor(params) { | |
| Object.assign(this, params); | |
| } | |
| static fabric() { | |
| return new Parent({ source: 'fabric', test: 1 }); | |
| } | |
| title() { |
This file contains hidden or 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
| const obj1 = { | |
| a: 1, | |
| b: 2, | |
| c: 3 | |
| }; | |
| const obj2 = { | |
| a: 10, | |
| b: null, | |
| c: undefined, |
This file contains hidden or 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
| class Parent { | |
| constructor(params) { | |
| Object.assign(this, params); | |
| } | |
| static fabric() { | |
| return new Parent({ source: 'fabric', test: 1 }); | |
| } | |
| title() { |
This file contains hidden or 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
| { | |
| "errorCode": "0", | |
| "errorMessage": "Успешно", | |
| "orderNumber": "12654", | |
| "orderStatus": 2, | |
| "actionCode": 0, | |
| "actionCodeDescription": "", | |
| "amount": 12000, | |
| "currency": "643", | |
| "date": 1636966243722, |