What is the value of clothes[0]:

const clothes = ['jacket', 't-shirt'];
clothes.length = 0;
 
clothes[0]; // => ???
'jacket'
' '
undefined
[]
1. What is the value of numbers?
 
const length = 4;
const numbers = [];
 
for (var i = 0; i < length; i++);{
 numbers.push(i + 1);
}
 
numbers; // => ???
5
10
[]
Which code will display the value 5?
console.log(sum(2,3));
console.log(sum(2)(3));
both
What will the following code output?
 
const arr = [10, 12, 15, 21];
for (var i = 0; i < arr.length; i++) {
  setTimeout(function() {
     console.log('Index: ' + i + ', element: ' + arr[i]); },
  3000);
}
Index: 3, element: 15
Index: 4, element: 21
Index: 4, element: undefined(printed 4 times)
What should be the set value of background-size property such that image will stretch to cover entire content area?
100% 100%
cover
contain
100%
What will be the output of variable x,y,z ?
 
var x=10;
var y=x++;
var z=++x;
console.log(x,y,z)
10,12,10
10,10,12
12,10,12
10,12,12
{"name":"What is the value of clothes[0]:", "url":"https://www.quiz-maker.com/Q5KX3H7","txt":"const clothes = ['jacket', 't-shirt']; clothes.length = 0;   clothes[0]; \/\/ => ???, 1. What is the value of numbers?   const length = 4; const numbers = [];   for (var i = 0; i ???, Which code will display the value 5?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker