From 22c137740d701e2ece45c2e5b1065e0e4fedc6ae Mon Sep 17 00:00:00 2001 From: cpxPratik Date: Sun, 7 May 2017 20:31:01 +0545 Subject: [PATCH] Update article.md Fix typos and grammatical errors. --- 1-js/02-first-steps/02-structure/article.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/1-js/02-first-steps/02-structure/article.md b/1-js/02-first-steps/02-structure/article.md index 606e1136..3a5aa88e 100644 --- a/1-js/02-first-steps/02-structure/article.md +++ b/1-js/02-first-steps/02-structure/article.md @@ -102,7 +102,7 @@ As the time goes, the program becomes more and more complex. It becomes necessar Comments can be put into any place of the script. They don't affect the execution, because the engine simply ignores them. -**One-line comments start with the two slash characters `//`.** +**One-line comments start with the two forward slash characters `//`.** The rest of the line is a comment. It may occupy a full line of its own or follow a statement. @@ -114,7 +114,7 @@ alert('Hello'); alert('World'); // This comment follows the statement ``` -**Multiline comments start with a slash and a star "/*" and end with a star and a slash "*/".** +**Multiline comments start with a forward slash and an asterisk "/*" and end with an asterisk and a forward slash "*/".** Like this: @@ -156,6 +156,6 @@ alert( 'World' ); Please, don't hesitate to comment your code. -Comments increase the overall code footprint, but that's not a problem at all. There are many tools which minify the code before publishing to production server. They remove comments, so they do not appear in the working scripts. So, the comments do not have any negative effects on production at all. +Comments increase the overall code footprint, but that's not a problem at all. There are many tools which minify the code before publishing to production server. They remove comments, so comments do not appear in the working scripts. So, the comments do not have any negative effects on production at all. -Further in the tutorial there will be a chapter that also explains how to write better comments. +Further in the tutorial, there will be a chapter that also explains how to write better comments.