Professional Documents
Culture Documents
ECMAScript is a __________
ES6 is the implementation of?
All major JavaScript Implementations are based on which standard?
ES6 is officially called ______________
ES6 can be used for ______________
During destructuring, you can either declare variables or assign to them, or both.
Which of the following parameters can be used to expand a single array into multiple arguments?
const { x, y } = { x: 11, y: 8 };
is the Same as
const { x: x, y: y } = { x: 11, y: 8 };
Destructuring helps us to extract multiple values from an object via __________.
What will be the output of following code snippet?
function foo(a = 10, b = 5) {
console.log(a, b);
}
foo(6);
The following code implements the ______ feature of ES6
function myFunction(x, y, z) { }
var args = [0, 1, 2];
myFunction(...args);
"Rest" collects all variables into a single array, while "Spread" expands a single variable into multiple.
Which of the following parameters can be used to define indefinite number of parameters in one single array?
Template literals does not allow us to _________.
Which is not a lexical inside arrow functions?
Variables declared in a scope are accessible in ___________.
In Arrow functions, if there is only one parameter and that parameter is an identifier then the parentheses can be omitted.
Template literals support ____________.
Template literals can be reused __________.
const func= (
x,
y
) => {
return x + y;
};
func(11,12);
Object Pattern
6,5
6,5
6,5
Spread
1
rest
interpolation
1
23
Block
0
1
It will reject the entire set
Approved
3
Symbol()
Const
Syntax Error
1
Symbol.KeyFor()
1
next()