Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Preface > Color-Coding Conventions

Color-Coding Conventions

In the JavaScript code examples (example shown below), bold is used to highlight code directly relevant to the concept being discussed. Any additional code used to support the bold code will be in normal text. The lighter gray in the code examples is reserved for JavaScript comments (example shown below).

<!DOCTYPE html><html lang="en"><body><script>

// this is a comment about a specific part of the code
var foo = 'calling out this part of the code';

</script></body></html>

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint