Sign In
Ask Question
Marquez
Computers & Technology
22 April, 13:38
In Js how will you declare and intialize an obejct an array
+1
WhatsApp
Telegram
Twitter
Answers (
1
)
Bria Chan
22 April, 14:06
0
In jа vascript array are the special type of object, to store the multiple value in single variable we used array in jа vascript.
Explanation:
We can create an array in jа vascript by using following syntax
var arrayname=[value1, value2 ... valuen];
For example:
var st=["san","ran", tan"];
In jа vascript array are treated as object.
we can declare and initialize an object of array
var st=["san","ran", tan"]; / / declaring array
document. getElementById ("d2"). innerHTML = st[0]; / / accessing the member of array by array object.
In this st object access the first element in the array.
Following are implementation of declare and initialize an object an array
Output:
san
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Find an answer to your question 👍
“In Js how will you declare and intialize an obejct an array ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
3. Which laptop component is the least likely to be upgraded?
Answers (1)
You have a network that uses a logical bus topology. how do messages travel through the network?
Answers (1)
Which table option enables you to combine the contents of several cells into one cell? A. Columns B. Insert C. Merge Cells D. Position
Answers (2)
Consider the partially-filled array named a. What does the following loop do? (cin is a Scanner object) int[] a = {1, 3, 7, 0, 0, 0}; int size = 3, capacity = 6; int value = cin. nextInt (); while (size 0) {a[size] = value; } 1.
Answers (1)
Which tool allows you to make a selection by drawing a freehand
Answers (1)
New Questions in Computers & Technology
What must you consider when determining the efficiency of an algorithm? Select two choices. a. The language in which the program is written b. The amount of resources, such as storage, required c. The number of characters used to write the program d.
Answers (1)
How to use translate on a website?
Answers (1)
When we consider data quality, what are the differences among validity, reliability, and representativeness? How can you know the data have high levels of these characteristics?
Answers (1)
You are creating a budget for your new business. What should you include? A. All income and expenses. B. Fixed expenses but not income. C. Income but not variable expenses. D. Fixed and variable expenses but not taxes.
Answers (1)
This resume format focuses on the tasks or skills that an applicant can perform is what? A chronological B functional C electronic or D scannable
Answers (1)
Home
»
Computers & Technology
» In Js how will you declare and intialize an obejct an array
Sign In
Ask Question
Menu
Calculator
Subjects
History
English
Mathematics
Biology
Physics
Chemistry
Geography
Social Studies
Business
Law
Arts
SAT
Advanced Placement (AP)
Computers & Technology
Engineering
Sign In
close
Sign In
Sign Up
Forgot Password?