Logo

Javascript Questions Set 238:

Quiz Mode

 Among the keywords below, which one is not a statement? 

1
2
3
4

Solution:

Which of the following variable declarations is immutable?

1
2
3
4

Solution:

What is the function used to store a value in web storage?

1
2
3
4

Solution:

What is the output of the following code?


var a = 10;

document.write(a=20);

1
2
3
4

Solution:

What types of error notifications are shown in the console window?

1
2
3
4

Solution:

The purpose of the Node object property ownerDocument is _________

1
2
3
4

Solution:

What is the process used by the browser to establish a TCP/IP connection?

1
2
3
4

Solution:

Which JavaScript function is used to trim whitespace?

1
2
3
4

Solution:

What will be the output?

const set = new Set(); set.add(6); set.add('6'); set.add({ name: 'Abekus' }); for (let item of set) {  console.log(item + 6); }

1
2
3
4

Solution:

What will be the output:

var arr1 = "john".split(''); var arr2 = arr1.reverse(); var arr3 = "jones".split(''); arr2.push(arr3); console.log("array 1: length=" + arr1.length + " last=" + arr1.slice(-1)); console.log("array 2: length=" + arr2.length + " last=" + arr2.slice(-1));

1
2
3
4

Solution: