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
var text = '
'+i+' |
document.write(text);
-> 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started