Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

=+4. What exercise did you try out and how did it work for you?

Answered: 1 week ago

Question

9. What benefits might accrue to you from studying labor economics?

Answered: 1 week ago

Question

=+How might you explain this phenomenon?

Answered: 1 week ago