2081 7

CSC329 ยท 2081 ยท 5 marks

How can you define array in javascript? Create an array Fruit with its elements 'apple', 'banana', 'mango', 'grape' and print the array.

How can you define array in javascript? Create an array Fruit with its elements 'apple', 'banana', 'mango', 'grape' and print the array. [5]

Web TechnologyChapter 4: Client Side Scripting with JavaScriptArrays

As per the notes, an array is a special variable which can hold more than one value at a time. We can access the values of an array by referring to an index number, and the index of an array starts with 0. Arrays are special types of objects in JavaScript. Syntax: --- Below is the complete HTML a...