diff --git a/guide/english/javascript/comments/index.md b/guide/english/javascript/comments/index.md index 60873d0a01..c32682984b 100644 --- a/guide/english/javascript/comments/index.md +++ b/guide/english/javascript/comments/index.md @@ -65,11 +65,15 @@ hello();

Many IDEs come with a keyboard shortcut to comment out lines.

  1. Highlight text to be commented
  2. -
  3. Mac: Push Command(Apple Key) & "/"
  4. -
  5. Windows: Push Control & "/"
  6. +
  7. Use hotkeys to comment out highlighted block + +
  8. You can also uncomment code by doing the same steps
-A shortcut to comment out a section of javascript in many code editors is to highlight the lines of code you want to comment out, then press `Cmd/Ctrl + /`. Comments are also very helpful for code testing as you can prevent a certain code-line/block from running