answersLogoWhite

0


Best Answer

The proper syntax to insert a multi-line comment into JavaScript is to surround the comment with /* and */

function useless()

{

/* This function doesn't do anything

We should come back to it.

Soon. */

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

// this is single line comment

/*

this

is

a

multiline

comment

*/

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

/*this comment has more than one line*/

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
3y ago

Why?

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the correct JavaScript syntax to insert a comment that has more than one line?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the correct JavaScript syntax to write Hello World?

document.write("hello world");


What is the correct JavaScript syntax for opening a new window called w2?

w2=window.open("http://www.w3schools.com");


What syntax-based language integrates into HTML pages?

JavaScript


The syntax and keywords of JavaScript most closely resemble those of?

C. The C language is the basis for JavaScript, as well as C++, C#, PHP, and Java. (Among others.)


What is the syntax of a programming language and what are the primary goals of syntax analysis?

Well, syntax is the fancy name for programming code. Without syntax, you wouldn't really have a program. It's good to analyze syntax as you are making sure that it is correct. If it isn't correct, then it won't work.


How do you save javascript on Roblox?

It is not possible to save and execute Javascript code on Roblox. You can save Javascript code as plain text in script objects, but there is no way to execute the code. Roblox uses a scripting language called LUA in-game which is somewhat similar to JavaScript, but it is not identicle. You can learn about LUA syntax on the Roblox wiki.


Is this sentence correct- Are you based in Canada?

The syntax is correct - it may or may not be true.


Where you went is it correct?

Yes, the sentence "Where you went is it correct" is not grammatically correct. It can be rephrased to "Is where you went correct?" for proper syntax.


Which of the following functions is written in the correct syntax?

NOW


How do you insert table on Gmail?

Data can be inserted into a table using the INSERT command. Syntax: INSERT INTO TABLE NAME VALUES () Ex: INSERT INTO emp_master VALUES ('1111', 'Rocky', '10-05-1978')


Which of the following is the correct syntax for HTML Anchor Control?

linktest


How do you create a bat file with correct syntax?

program it right