Explore a wide range of topics and get answers from experts on IDNLearn.com. Join our community to receive prompt and reliable responses to your questions from knowledgeable professionals.

write a script that displays the numbers 1 to 4 on the same line, with each pair of adjacent numbers seperated by one space. write the script using the following methods:
a) using one document.writeln statement

b) using four document.write statements