Logo

Javascript Questions Set 226:

Quiz Mode

Which jQuery method is used to apply CSS properties?

1
2
3
4

Solution:

Which of the following best describes the nature of cookies?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?


var a=2.99;

var ans=floor(a)*floor(a)

console.log(ans);

1
2
3
4

Solution:

const array1 = ['a', 'b', 'c'];


const iterator1 = array1.entries();


console.log(iterator1.next().value);

1
2
3
4

Solution:

Which of the following is the correct method to delete selected key-value pairs from a Map object?

1
2
3
4

Solution:

Which method is used to cancel future invocations of the function scheduled by setTimeout()?

1
2
3
4

Solution:

Why should JavaScript functions not be too long?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

<script>
var str = "The rain in Spain";
var patt1 = /ain/g;
document.write(patt1.lastIndex);
</script>

1
2
3
4

Solution:

What does the following JavaScript code snippet do?

data.sort(function(a,b),b-a);

1
2
3
4

Solution:

The basic purpose of the toLocaleString() method is to:

1
2
3
4

Solution: