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 following code snippet? function foo(a = 10, b = 5) { console.log(a, b); } foo(6);
Home
ECMAScript
What will be the output of following code snippet? function foo(a = 10, b = 5) { console.log(a, b);...
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
(
5.1k
points)
What will be the output of following code snippet?
function foo(a = 10, b = 5) {
console.log(a, b);
}
foo(6);4
(1)10, 5
(2)10, 6
(3)undefined error
(4)6, 5
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 21, 2020
by
GeorgeBell
(
5.1k
points)
6, 5
Related questions
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.1k
points)
0
votes
Q: What will be the output of the following code snippet in ES6? const func= ( x, y ) => { return x + y; }; func(11,12);
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
(
5.1k
points)
+1
vote
Q: What will be the output of log (-5.8) when executed on R console?
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 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.1k
points)
+1
vote
Q: A 4-input neuron has weights 1, 2, 3 and 4. The transfer function is linear with the constant of proportionality being equal to 2. The inputs are 4, 10, 5 and 20 respectively. What will be the output?
asked
Oct 22, 2021
in
Artificial Intelligence
by
DavidAnderson
(
8.9k
points)
artificial-intelligence
other-ai-algorithms-&-statistics-artificial
intelligence-algorithms
0
votes
Q: A man has $ 10,000 to invest. He invests $ 4000 at 5 % and $ 3500 at 4 %. In order to have a yearly income of $ 500, he must invest the remainder at: (a) 6 % , (b) 6.1 %, (c) 6.2 %, (d) 6.3 %, (e) 6.4 %
asked
May 21, 2019
in
Mathematics
by
sheetalkhandelwal
(
1.6k
points)
#maths
#mathematics
Mathematics-questions-answers
0
votes
Q: What will be the output of the following snippet , if we pass 3e,5?
asked
Aug 18, 2021
in
AngularJS Packaging and Testing
by
SakshiSharma
(
32.2k
points)
angular-output
0
votes
Q: What will be the output of the following snippet , if we pass 3e,5?
asked
Jan 17, 2021
in
Python
by
SakshiSharma
(
32.2k
points)
#program-output
Python-questions-answers
...