Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Multi-Line Comments | Section
JavaScript Essentials for Beginners - 1768407374405

bookMulti-Line Comments

Summary

  • Multi-line comments: used to add comments that span over multiple lines;
  • A multi-line comment starts with /* and ends with */. Everything in between these symbols is ignored by the JavaScript engine.
/*
  This is a multi-line comment.
  It can span several lines.
*/
question mark

What is the correct syntax to write a multi-line comment?

Select the correct answer

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 12

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

bookMulti-Line Comments

Sveip for å vise menyen

Summary

  • Multi-line comments: used to add comments that span over multiple lines;
  • A multi-line comment starts with /* and ends with */. Everything in between these symbols is ignored by the JavaScript engine.
/*
  This is a multi-line comment.
  It can span several lines.
*/
question mark

What is the correct syntax to write a multi-line comment?

Select the correct answer

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 12
some-alt