This Gist was automatically created by Carbide, a free online programming environment.
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
| let word = "gehen" | |
| let endpoint = 'https://en.wiktionary.org/api/rest_v1/page/definition' | |
| let filter = new RegExp('< *\\/? *[a-z]+ *( [a-z]+="[^<>"]+" *)* *\\/? *>', 'ig') | |
| let url = `${endpoint}/${word}` | |
| let resObj = await fetch(url, {orgin:'test'}) | |
| let res = await resObj.json() | |
| function cleanString(str) { |
This Gist was automatically created by Carbide, a free online programming environment.
[You can view a live, interactive version of this Gist here](http://alpha.trycarbide.com/@bijection/bae03af5387
This Gist was automatically created by Carbide, a free online programming environment.
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 a = 30; | |
| a; |
This Gist was automatically created by Carbide, a free online programming environment.
This Gist was automatically created by Carbide, a free online programming environment.
This Gist was automatically created by Carbide, a free online programming environment.
NewerOlder