Question: var text = ' '; var i=7,count=20,d=9; for (count;count>0;count--){ text+=' '+i+' '; i+=d; } text+= ' '; document.write(text); -> For produce 30 number of series

-> For produce 30 number of series we can change d value or take input from user for the d value.

-> We should use document.write instead of alert because if we use alert is use to give information on browsers window and take input as an string and after click on ok this window disappear and if we use document.write it write or use for permananet change in page.

output-

Error: Element head is missing a required instance of child element title.

From line 4, column 1; to line 4, column 6

"UTF-8">

Content model for element head:

If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content, of which no more than one is a title element and no more than one is a base element.

Otherwise: One or more elements of metadata content, of which exactly one is a title element and no more than one is a base element.

Error: Non-space character in page trailer.

From line 22, column 1; to line 22, column 97

-> For produce 30 number of series we can change d value or take input from user for the d value.-> W

please fix these errors and update it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!