Q1 | What does the `findIndex()` method in JavaScript Array do? | |
---|
Q2 | Consider the array below. What will be the output of the `find() method`?
```
const numbers... | |
---|
Q3 | What is the value of the following JavaScript ES6 code:
```
'JavaScript'.startsWith('Java')?... | |
---|
Q4 | Given the following code, what will be the output?
```
let string = "Hello, world!";
conso... | |
---|
Q5 | What is the output of the following code?
```
const speed = 'quick';
console.log(`The ${sp... | |
---|
Q6 | What is the main usage of the `Symbol` data type in ES6? | |
---|
Q7 | Which of the following statements about `Symbols` in JavaScript is false? | |
---|
Q8 | What is the final value of `obj` if we run the following code snippet?
```
const obj = { foo... | |
---|
Q9 | What is a valid statement about `constants` in JavaScript ES6? | |
---|
Q10 | What is a necessary condition for using the `await` keyword in JavaScript ES6? | |
---|
Q11 | What is a `Promise` in JavaScript ES6? | |
---|
Q12 | Examine the following JavaScript ES6 code:
```
// greet.js
export function sayHello(name) ... | |
---|
Q13 | What is a `module` in ES6? | |
---|
Q14 | Which keyword is used to implement inheritance in ES6? | |
---|
Q15 | What is a `class` in ES6? | |
---|
Q16 | What is `destructuring assignment` in JavaScript ES6? | |
---|
Q17 | What is the `rest operator` in JavaScript? | |
---|
Q18 | How can the `spread operator` be used to concatenate two arrays in JavaScript ES6? | |
---|
Q19 | What does the `spread operator` (...) do in JavaScript ES6? | |
---|
Q20 | Which of the following is a valid example of using default function parameters in ES6? | |
---|
Q21 | How can you define `default function parameters` in ES6? | |
---|
Q22 | What are `default function parameters` in ES6? | |
---|
Q23 | How can you access the interpolated values inside a tagged template function in ES6? | |
---|
Q24 | What are `tagged templates` in ES6 used for? | |
---|
Q25 | What will be the output of the following code snippet?
```
const name = 'John';
const age ... | |
---|
Q26 | Which of the following statements about `template literals` in ES6 is not true? | |
---|
Q27 | What are the benefits of using `arrow functions` in JavaScript? | |
---|
Q28 | What is an `arrow function`? | |
---|
Q29 | What is the output of the following code?
```
const numbers = [1, 2, 3, 4, 5];
const squ... | |
---|
Q30 | What is the syntax for declaring an arrow function in ES6? | |
---|
Q31 | Which of the following statements is true about block-scoped declarations using the `let` and `... | |
---|
Q32 | What is the difference between using the keywords `let` and `const` for block-scoped declaratio... | |
---|