From a41d0083194ac3a84368a9c6d721e941d0a1b0bc Mon Sep 17 00:00:00 2001 From: odykyi <24225497+odykyi@users.noreply.github.com> Date: Wed, 12 Sep 2018 19:45:15 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 280cf56..0d60844 100755 --- a/README.md +++ b/README.md @@ -11,6 +11,24 @@ Disclaimer: Some of these snippets are simply to demonstrate the *quirky* parts Q. What's the result? +```javascript +(() => { + const func = async () => {} + const type = func.constructor.name; + return type; +})() +``` + +A. + +```javascript +"AsyncFunction" +``` + +--- + +Q. What's the result? + ```javascript (function() { return `text 'inner'` == `text "inner"`; From 13373dc6f80476102760eebe45a1075e3a1fe928 Mon Sep 17 00:00:00 2001 From: odykyi <24225497+odykyi@users.noreply.github.com> Date: Wed, 12 Sep 2018 19:45:55 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d60844..6cac335 100755 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Disclaimer: Some of these snippets are simply to demonstrate the *quirky* parts Q. What's the result? ```javascript -(() => { +(function() => { const func = async () => {} const type = func.constructor.name; return type;