Expert Developer JavaScript Question:
Download Questions PDF

What is the use of Void(0)?

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

Answer:

Void(0) is used to prevent the page from refreshing and parameter "zero" is passed while calling.

Void(0) is used to call another method without refreshing the page.

Download Expert JavaScript Developer Interview Questions And Answers PDF

Previous QuestionNext Question
How can you convert the string of any base to integer in JavaScript?Mention what is the disadvantage of using innerHTML in JavaScript?