programming exercise

Task 5
    Write a JavaScript code using nested for loop (A nested loop is a loop within a loop ) to print your name number of times depending on the inserted value from the user.

The output should be something similar to the following if the value inserted is 3:

Tam
TamTam
TamTamTam

PUT THE FINAL CODE HERE

Task 6
    using  the example below

<!DOCTYPE html>
<html>
<body>
<h1>WPDAM – JS Array – Example 3</h1>
<p id=”P1″></p>

<script>

function askUser()
{
    var userData = new Array ();
    userData [0] = prompt(“What is your name?”);
    userData [1] = prompt(“What is your age?”);
    userData [2] = prompt(“What is your mobile number?”);
    return userData;

}

var tmp = askUser();
document.getElementById(“P1”).innerHTML =
    “Your Name is: ” + tmp[0] + “<br>” +
    “Your Age is: ” + tmp[1] + “<br>” +
    “Your Mobile number is: ” + tmp[2] + “<br>”;
   
</script>
</body>
</html>

–    Add suitable comments for each statement.
–    Edit the code to:
a.    Accept email address from the user.
b.    Check the age value is between 6-90 years old.
c.    Check the mobile value is numbers only.
d.    Check the email address value is correct.
e.    If any value entered by the user in (b),(c) and (d) is incorrect
–    Alert the user Please insert a correct value
–    Repeat ask the user until the data entered is valid.

PUT THE FINAL CODE HERE

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational