A very simple program to demonstrate how to declare and use array using JavaScript as our programming language.
My mobile number here in the Philippines is 09173084360.
Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
<html>
<head>
<title>Array in JavaScript</title>
<head>
<h1> Array in JavaScript </h1>
<br>
</body>
<script>
var arrayOfFruits = ['Apple', 'Banana', 'Grapes', 'Orange','Guava','Dalandan'];
alert(arrayOfFruits[2]);
alert('length: ' + arrayOfFruits.length);
</script>
</html>
No comments:
Post a Comment