Logo

Javascript Questions Set 98:

Quiz Mode

What is the command used for debugging output in Node.js?

1
2
3
4

Solution:

 The function stops its execution when it encounters? 

1
2
3
4

Solution:

Which property is associated with the Request event?

1
2
3
4

Solution:

What happens when you reference document.location from within an object?

1
2
3
4

Solution:

How can you access the properties of the following object?

var obj = {

a: "a",

b: "b",

c: "c",

d: "d"

};

1
2
3
4

Solution:

A common use case for the useRef hook in React is to

1
2
3
4

Solution:

What is the function of the replace prop in the <Link> component?

1
2
3
4

Solution:

What will be the output of the following code?

const event = ["featured","prompted","filtered"]

const events = event.map(e => e + 's')

console.log(events[0])

1
2
3
4

Solution:

Which of the following statements about strict mode in JavaScript is true?

1
2
3
4
5

Solution:

Corresponding to the following script, which of the following ways of accessing the object properties is correct?

 function Ticket(from,to,Name){
  this.from=from;
  this.to=to;
  this.Name= Name;
  }
 

  var ticket=new Ticket( "Tezpur","Ranchi","Cinu" ); 

1
2
3
4

Solution: