>
Exams
>
Computer Science & Information Technology
>
Web Technologies
>
which operator is used to allocate memory to array
Question:
Which operator is used to allocate memory to array variables in JavaScript?
Show Hint
new = constructor keyword for dynamic objects and arrays.
TS PGECET - 2024
TS PGECET
Updated On:
May 26, 2025
new
malloc
calloc
free
Hide Solution
Verified By Collegedunia
The Correct Option is
A
Solution and Explanation
In JavaScript, memory for arrays or objects is allocated using the `new` keyword, e.g., let arr = new Array();
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Web Technologies
Which of the following allows web pages to be updated asynchronously by exchanging data between web client and server?
TS PGECET - 2024
Computer Science & Information Technology
Web Technologies
View Solution
Which provides a method to avoid element name conflicts in XML?
TS PGECET - 2024
Computer Science & Information Technology
Web Technologies
View Solution
What is the purpose of DTD?
TS PGECET - 2024
Computer Science & Information Technology
Web Technologies
View Solution
Which of the following is NOT a web browser?
TS PGECET - 2024
Computer Science & Information Technology
Web Technologies
View Solution
The function setcookie() is used to
TS PGECET - 2024
Computer Science & Information Technology
Web Technologies
View Solution
View More Questions
Questions Asked in TS PGECET exam
A bag contains 3 red and 2 blue balls. Two balls are drawn without replacement. What is the probability that both are red?
TS PGECET - 2025
Probability
View Solution
Which of the following techniques is primarily used for the synthesis of carbon nanotubes?
TS PGECET - 2025
Strength of Materials
View Solution
In which year was the Earth Summit (Rio Conference) held?
TS PGECET - 2025
Environmental pollution
View Solution
The term "carrying capacity" refers to:
TS PGECET - 2025
Sustainable Development
View Solution
Which of the following is an example of non-point source pollution?
TS PGECET - 2025
Environmental pollution
View Solution
View More Questions