For longer comments, use /* to start and */ to end:
/*
This function calculates shipping cost
based on weight and destination.
Returns the cost in dollars.
*/
function calculateShipping(weight, dest) {
// ...
}
Multi-line comments are useful for temporarily disabling code during debugging. Wrap the code you want to skip in /* */ and it won't run. Remove the comment markers when you're done testing.