Logo

Javascript Questions Set 179:

Quiz Mode

 Which is the function used to retrieve a value? 

1
2
3
4

Solution:

Where does the external process save the result of the test?

1
2
3
4

Solution:

Which of the following properties indicates the total size of the JavaScript heap?

1
2
3
4

Solution:

Which is the correct way to access a property of the following object?


var obj = {

a: 12,

b: 21

};

1
2
3
4

Solution:

Which of the following is the correct selector for selecting all elements of a particular class?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

var arr = ["1", "1", "2", "1"];
var a = arr.lastIndexOf("1");
document.getElementById("demo").innerHTML = (a + 1);

1
2
3
4

Solution:

What is the output of the following JavaScript code?


<script>

var i, t = "";

var x = {a:1, b:2, c:3};

for (i in x)

t += x[i] + " ";

document.write(t);

</script>

1
2
3
4

Solution:

What is the most essential purpose of parentheses in regular expressions?

1
2
3
4

Solution:

Predict the output:


let variable = function(color) {

return function (target) {

target.property = color;

}

};


@variable('Abekus is Blue')

class bb

{ }

console.log(bb.property);

1
2
3
4

Solution:

The minLength property of an autocomplete widget is used to appear the list of an autocomplete widget after entering the characters which is equal to the value of minLength.

1
2
3
4

Solution: