Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre 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

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 12

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

bookMulti-Line Comments

Glissez pour afficher le menu

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

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 12
some-alt