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
| type Locale { | |
| localeId: String! | |
| description: String! | |
| } | |
| type LocalePair { | |
| targetLocaleId: String! | |
| sourceLocaleId: String! | |
| } |
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
| {"lastUpload":"2021-11-01T13:07:05.934Z","extensionVersion":"v3.4.3"} |
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
| {"lastUpload":"2021-10-11T06:24:39.759Z","extensionVersion":"v3.4.3"} |
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 index = 1; | |
| ((arg) => { arg++ })(index); | |
| console.log(`Index: ${index}`); | |
| const str = "a"; | |
| ((arg) => { arg.toUpperCase() })(str) | |
| console.log(`String: ${str}`); | |
| const obj = { index: 1, str: "a" }; | |
| ((arg) => { arg.index++; arg.str.toUpperCase(); })(obj); |
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 promise = new Promise((resolve) => resolve("John Smith")); | |
| // what is the difference between these versions? | |
| // is there incorrect syntax? | |
| //1 | |
| promise | |
| .then((name) => { | |
| return `Hello, ${name}` | |
| }) |
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
| function(state = { | |
| totalCount: 0, | |
| items: [] | |
| }, action = {}) { | |
| switch(action.type) { | |
| case "GET_LIST": | |
| case "ADD_ITEM": | |
| case "REMOVE_ITEM": | |
| case "UPDATE": | |
| default: |
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 promise1 = new Promise((resolve) => {setTimeout(() => {resolve("success")}, 1000)}); | |
| promise1.then((message) => {console.log(`${message} 1`)}); | |
| promise1.then(() => {throw "exeption"}); | |
| promise1.then((message) => {console.log(`${message} 2`)}); | |
| const promise2 = new Promise((resolve) => {setTimeout(() => {resolve("success")}, 2000)}); | |
| promise2 | |
| .then((message) => {console.log(`${message} 3`)}) | |
| .then(() => {throw "exeption"}) | |
| .then((message) => {console.log(`${message} 4`)}); |
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
| import React from “react”; | |
| class MyClass extends React.Component { | |
| constructor(props) { | |
| this.state = { | |
| count: 0, | |
| error: null | |
| } | |
| super(props); | |
| } |
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
| function f () { | |
| a = 1; | |
| b = 2; | |
| c = 3; | |
| d = 4; | |
| var a; | |
| let b; | |
| const c; | |
| } |
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
| // returns collection with identifer `id` | |
| const getStrings = () => { | |
| return new Promise((resolve) => { | |
| resolve([ | |
| { | |
| id: "id", | |
| sourceString: "{1} word" | |
| } | |
| ]) | |
| }); |
NewerOlder