From ceaa347264094e4bf1cc9b45cf94331a14a9a4db Mon Sep 17 00:00:00 2001 From: Eme-rald <36796567+Eme-rald@users.noreply.github.com> Date: Fri, 16 Nov 2018 09:14:26 -0800 Subject: [PATCH] Explained why you may want to comment code out. (#21204) * Explained why you may want to comment code out. * Update index.md --- guide/english/javascript/comments/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/javascript/comments/index.md b/guide/english/javascript/comments/index.md index 105f30beae..60873d0a01 100644 --- a/guide/english/javascript/comments/index.md +++ b/guide/english/javascript/comments/index.md @@ -53,7 +53,7 @@ function addTwoNumbers(num1, num2) { } console.log(addTwoNumbers(10,20)) // will print 30 in the console. -You can also prevent execution of Javascript code just commenting the code lines like this: +In some cases you may want to prevent code from running for debugging purposes. For example: ```javascript function hello() { /*console.log("Hello world!");*/