What is stored in the triangle array? let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]]; , 1) [ [1,3], [5,5], [1,8] ],2) [1,3,5,5,1,8], 3) 23, 4) None of the above, "> What is stored in the triangle array? let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]]; "/> What is stored in the triangle array? let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]]; , [ [1,3], [5,5], [1,8] ], [1,3,5,5,1,8], 23, None of the above, "/>
What is stored in the triangle array?
let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]];
Question
What is stored in the triangle array?
let point = [1,3], segment = [point,[5,5]], triangle = [...segment,[1,8]];
Which is not Array methods in ES6?
What is ES6?
ECMAScript1 edition released in year of____
What is the final value of "obj" in the following example?
const obj = { foo: 1 };
obj.bar = 2;
Rest is a new way for functions to handle an arbitrary number of parameters. Can you guess what the mysterious "x" variable holds?
function mys(...params) {
return params;
}
let x = mys(1,23,4);
See the example below. Here given some interpolation features. check what is wrong.
let name = 'Marry';
let occupation = 'Farmer';
console.log(`Hi! My name is ${name}. I'm a ${occupation}.`);
What value will this expression return?
let x, { x: y = 1 } = { x }; y;
What is a Promise() in ES6?
function* gen() {
yield;
}
// Calling the Generator Function
var mygen = gen();
console.log(mygen.next().value);
What is/are the advantages of the arrow function?
Programming Skill