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 +...
0
votes
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
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
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
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
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
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
0
votes
Q: What's the output? const getList = ([x, ...y]) => [x, y] const getUser = user => { name: user.name, age: user.age }
asked
Mar 13
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What's the output? const box = { x: 10, y: 20 }; Object.freeze(box); const shape = box; shape.x = 100;
asked
Mar 11
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
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
+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
#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 the following Java code snippet?
asked
Aug 21, 2022
in
JAVA
by
sharadyadav1986
java
program
0
votes
Q: What will be the output of below Gradle code snippet?
asked
Jun 21, 2020
in
Gradle
by
Robindeniel
#gradle-code-snippet
#gradle-code
#code-snippet-gradle
Gradle-questions-answers
...