Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Output of the following javascript program
Home
JAVA
Output of the following javascript program
0
votes
asked
Feb 20
in
JAVA
by
DavidAnderson
Output of the following javascript program
const
object1
=
{
a
:
1
,
b
:
2
,
c
:
3
};
const
obj2
=
Object
.
assign
({
c
:
4
,
d
:
5
},
object1
);
console
.
log
(
obj2
.
c
,
obj2
.
d
);
1. 4,5
2. 3,4
3. 4, undefined
4. None of the above
javascript-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 20
by
DavidAnderson
Correct answer is : 3,5
Related questions
0
votes
Q: What is the output of below for loops in Javascript?
asked
Oct 16, 2023
in
JavaScript
by
GeorgeBell
javascript-interview-questions-answers
0
votes
Q: What will be the output of the following Java program?
asked
Aug 21, 2022
in
JAVA
by
sharadyadav1986
java
program
0
votes
Q: What is the output of the following Java program?
asked
May 4, 2021
in
JAVA
by
SakshiSharma
output
java
Java-questions-answers
0
votes
Q: What is the output of the following Java program?
asked
May 3, 2021
in
JAVA
by
Robindeniel
java-output
java-program
Java-questions-answers
0
votes
Q: What is the output of the following Java program?
asked
May 3, 2021
in
JAVA
by
Robindeniel
#java
output
Java-questions-answers
0
votes
Q: What is the output of the following Java program?
asked
May 3, 2021
in
JAVA
by
Robindeniel
java
output
Java-questions-answers
0
votes
Q: What is the output of the following Java program?
asked
May 3, 2021
in
JAVA
by
Robindeniel
java
output
Java-questions-answers
0
votes
Q: Is the following program written correctly? If yes then what will be the output of the program?
asked
Apr 30, 2021
in
JAVA
by
rajeshsharma
#output
java-progam
Java-questions-answers
0
votes
Q: What is the output of the following Java program?
asked
Apr 30, 2021
in
JAVA
by
rajeshsharma
#java-program
Java-questions-answers
0
votes
Q: What will be the output of the following program?
asked
Apr 9, 2021
in
JAVA
by
Robindeniel
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
...