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
What will be the output of the following code snippet in ES6? const func= ( x, y ) => { return x + y; }; func(11,12);
Home
ECMAScript
What will be the output of the following code snippet in ES6? const func= ( x, y ) => { return x +...
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
(
5.2k
points)
What will be the output of the following code snippet in ES6?
const func= (
x,
y
) => {
return x + y;
};
func(11,12);
(1)None of the options
(2)Syntax Error
(3)23
(4)Logical Error
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 21, 2020
by
GeorgeBell
(
5.2k
points)
23
Related questions
0
votes
Q: Check the Below code and check correct or not const { x, y } = { x: 11, y: 8 }; is the Same as const { x: x, y: y } = { x: 11, y: 8 };
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
(
5.2k
points)
0
votes
Q: The following code implements the ______ feature of ES6 function myFunction(x, y, z) { } var args = [0, 1, 2]; myFunction(...args);
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
(
5.2k
points)
0
votes
Q: What will be the output of following code snippet? function foo(a = 10, b = 5) { console.log(a, b); } foo(6);
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
(
5.2k
points)
0
votes
Q: What is the significance of the following code snippet? for (let i = 0; i < 10; i++) { x += 10; }
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
(
5.2k
points)
0
votes
Q: What will be printed if the following code is executed? let x=150; if(x>100) { x=1; } console.log(x);
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
(
5.2k
points)
0
votes
Q: What will be the output of the following Java code snippet?
asked
Aug 21, 2022
in
JAVA
by
sharadyadav1986
(
31.7k
points)
java
program
+3
votes
Q: Two vectors X and Y are defined as follows – X <- c(3, 2, 4) and Y <- c(1, 2). What will be output of vector Z that is defined as Z <- X*Y.
asked
Jul 28, 2019
in
R Language
by
Aarav2017
(
359
points)
#r-language
#r-programming
#r-course
#r-tutorial
#r-question-answer
#r-interview-question
#r-basics
#r-test
#what-is-r
#learn-r
0
votes
Q: What will be the output of below Gradle code snippet?
asked
Jun 21, 2020
in
Gradle
by
Robindeniel
(
20.8k
points)
#gradle-code-snippet
#gradle-code
#code-snippet-gradle
Gradle-questions-answers
0
votes
Q: what will following lines of code return x<-matrix(1:18,6,3)____-
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
(
391
points)
#datahandling
0
votes
Q: What will the following lines of code return x <- matrix(1:18, 6, 3) apply(x, 2, sum)
asked
May 27, 2019
in
Data Handling
by
tempuser
(
391
points)
#datahandling
DataHandling-questions-answers
0
votes
Q: The following lambda expression is valid. (x, y) -> return x + y
asked
May 22, 2022
in
JAVA
by
AdilsonLima
(
6.4k
points)
java8
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from x where there are not matching values in y, keeping just columns from x?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
(
391
points)
#datahandling
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from x and y irrespective of matching values?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
(
391
points)
#datahandling
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from y, and all columns from x and y?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
(
391
points)
#datahandling
0
votes
Q: If x and y are two tbls, which of the following joins return all rows from x where there are matching values in y, and all columns from x and y?
asked
Jun 7, 2019
in
Data Handling using R
by
tempuser
(
391
points)
#datahandling
...