How to comment in JavaScript

Using comments in code can be useful for a variety of reasons. Maybe you work in a team or you are creating a reusable script. Regardless of your development needs, comments are a great way to make your code maintainable.

Comments in JavaScript can be done in two ways:

Single Line JavaScript Comment

To comment a single line of JavaScript you begin the comment with two forward slashes “//”. For example:

// declare a variable for color
var color = "red";

Multiple Line JavaScript Comment

To comment multiple lines you begin the comment with “/*” and end with */. For example:

/* a multi line comment to say that
   my favorite color is not red
   it is blue
*/
var color = "blue";

Use Google Suggest for Keyword Research

There are a lot of great tools available, both free and paid, to conduct keyword research. However, one you might overlook is what is in front of you every time you go to google search. Aand if you are like me that is lot.

Google Suggest is the drop down box that appears with synonyms for your query when you type into the search box. What this shows you is relevant, and possibly alternative, search phrases to you keyword. Best of all, the suggestions are “straight from the horse’s mouth” being Google’s mathematically determined suggestions to your search query.