We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af1b00e commit 026b4a9Copy full SHA for 026b4a9
.editorconfig
@@ -0,0 +1,15 @@
1
+# This file is for unifying the coding style for different editors and IDEs
2
+# editorconfig.org
3
+root = true
4
+
5
+[*]
6
+end_of_line = lf
7
+charset = utf-8
8
+trim_trailing_whitespace = false
9
+insert_final_newline = true
10
+indent_style = space
11
+indent_size = 2
12
13
+[{*.yml,*.json}]
14
15
01-first-async-await-function.js
@@ -0,0 +1,13 @@
+const fetch = require('node-fetch');
+function getZhihuColumn(id) {
+ const url = `https://zhuanlan.zhihu.com/api/columns/${id}`;
+ fetch(url)
+ .then(response => response.json())
+ .then(column => {
+ console.log(`NAME: ${column.name}`);
+ console.log(`INTRO: ${column.intro}`);
+ });
+}
+getZhihuColumn('feweekly');
0 commit comments