From e50b6cc7441820f25a1a7be2eea32fe39c202483 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Sun, 4 Aug 2019 00:21:40 +0300 Subject: [PATCH] minor --- 1-js/02-first-steps/14-function-basics/article.md | 10 ++++++---- 2-ui/5-loading/02-script-async-defer/article.md | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/1-js/02-first-steps/14-function-basics/article.md b/1-js/02-first-steps/14-function-basics/article.md index 6684f60d..572e4f3f 100644 --- a/1-js/02-first-steps/14-function-basics/article.md +++ b/1-js/02-first-steps/14-function-basics/article.md @@ -338,13 +338,15 @@ That doesn't work, because JavaScript assumes a semicolon after `return`. That'l return*!*;*/!* (some + long + expression + or + whatever * f(a) + f(b)) ``` -So, it effectively becomes an empty return. -If we wanted our expression to wrap across multiple lines, we would have to put the opening parenthesis in the same line as the `return` statement as follows: + +So, it effectively becomes an empty return. + +If we want our expression to wrap across multiple lines, we can put the opening parentheses in the same line as the `return` statement as follows: ```js return ( - some + long + expression - + or + + some + long + expression + + or + whatever * f(a) + f(b) ) ``` diff --git a/2-ui/5-loading/02-script-async-defer/article.md b/2-ui/5-loading/02-script-async-defer/article.md index a8936dd3..a536cd4e 100644 --- a/2-ui/5-loading/02-script-async-defer/article.md +++ b/2-ui/5-loading/02-script-async-defer/article.md @@ -178,7 +178,7 @@ loadScript("/article/script-async-defer/small.js"); ## Summary -Both `async` and `defer` have one common thing: they don't block page rendering. So the user can read page content and get acquanted with the page immediately. +Both `async` and `defer` have one common thing: downloading of such scripts doesn't block page rendering. So the user can read page content and get acquanted with the page immediately. But there are also essential differences between them: