Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


How can you combine the following arrays using the spread operator?
Question Posted on 16 Sep 2023

Home >> JavaScript >> React MCQ >> How can you combine the following arrays using the spread operator?




How can you combine the following arrays using the spread operator?


React Const Array
Choose the correct option from below list
(1)const combined = [array1, array2];
(2)const combined = [...array1, ...array2];
(3)const combined = ...array1 + ...array2;
(4)const combined = array1 + array2;

Answer:-(2)const combined = [...array1, ...array2];
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
What is the correct command to create a new React project?
When rendering a list using the JavaScript map() method, what is required for each element rendered?
What is the default local host port that a React development server uses?
What is the children prop?
What tool does React use to compile JSX?






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |