0% found this document useful (0 votes)
18 views

Name: Chaitanya Ramdas Bhosale Roll No: 78 Enrollment No: 1815770231 Batch: 4

The document contains student details including name, roll number, enrollment number and batch of a student named Chaitanya Ramdas Bhosale. It also contains two JavaScript code snippets that use for loops to iterate through arrays and display the array elements separately on new lines using document.write(). The first code defines an array with 3 elements and loops through it. The second code defines an array with 3 elements directly and also loops through it to display the elements.

Uploaded by

Prathmesh Gurav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Name: Chaitanya Ramdas Bhosale Roll No: 78 Enrollment No: 1815770231 Batch: 4

The document contains student details including name, roll number, enrollment number and batch of a student named Chaitanya Ramdas Bhosale. It also contains two JavaScript code snippets that use for loops to iterate through arrays and display the array elements separately on new lines using document.write(). The first code defines an array with 3 elements and loops through it. The second code defines an array with 3 elements directly and also loops through it to display the elements.

Uploaded by

Prathmesh Gurav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Name : Chaitanya Ramdas Bhosale

Roll No : 78

Enrollment No : 1815770231

Batch : 4

<html>

<body>

<script>

var i;

var emp = new Array();

emp[0] = "Arun";

emp[1] = "Varun";

emp[2] = "John";

for (i = 0; i < emp.length; i++) {

document.write(emp[i] + "<br>");

</script>

</body>

</html>
<html>

<body>

<script>

var emp = ["Sonoo", "Vimal", "Ratan"];

for (i = 0; i < emp.length; i++) {

document.write(emp[i] + "<br/>");

</script>

</body>

</html>

You might also like